drm/virtio: Add the fence in resource_flush if present
authorVivek Kasireddy <vivek.kasireddy@intel.com>
Thu, 10 Jun 2021 23:24:56 +0000 (16:24 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 23 Jun 2021 10:12:00 +0000 (12:12 +0200)
commit5c68ab9276aae473b6f07191ad115bfcb09dc938
tree3187e310fda5263f36e2f774eb419a8d9ad5c106
parent56934baef47b262e27c29f8e306d4035cf37a71e
drm/virtio: Add the fence in resource_flush if present

If the framebuffer associated with the plane contains a fence, then
it is added to resource_flush and will be waited upon for a max of
50 msecs or until it is signalled by the Host.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210610232456.671905-4-vivek.kasireddy@intel.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_plane.c