drm/virtio: fix command submission with objects but without fence.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 4 Sep 2019 07:48:28 +0000 (09:48 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 6 Sep 2019 05:23:37 +0000 (07:23 +0200)
commit84f6fec42e9e66578bb63263cb5bb8407b0ca936
treead3f6b30dd047154f526abf0ff0dd3736f230031
parentf0c6cef7e7174bdb11bbf972cded48bbb33bfba4
drm/virtio: fix command submission with objects but without fence.

Only call virtio_gpu_array_add_fence if we actually have a fence.

Fixes: da758d51968a ("drm/virtio: rework virtio_gpu_execbuffer_ioctl fencing")
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190904074828.32502-1-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_vq.c