drm/virtio: fix pageflip flush
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 19 Dec 2018 12:27:00 +0000 (13:27 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 8 Jan 2019 11:00:00 +0000 (12:00 +0100)
commit6a01d277ac611663e8e810177b50d16aa6c2a915
treecd3466e7a635f843ba6f5e4facf8fba3aec9a9c1
parent3630c2a24f75e3ac58366bc4745c2c63391bb4f7
drm/virtio: fix pageflip flush

Sending the flush command only makes sense if we actually have
a framebuffer attached to the scanout (handle != 0).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20181219122708.4586-3-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_plane.c