Gerd Hoffmann
2015-Sep-21 09:40 UTC
[PATCH v2 3/6] virtio-gpu: wait for cursor updates finish
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> --- drivers/gpu/drm/virtio/virtgpu_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index 4e160ef..97e5274 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -90,6 +90,9 @@ static int virtio_gpu_crtc_cursor_set(struct drm_crtc *crtc, cpu_to_le32(64), cpu_to_le32(64), 0, 0, &fence); + reservation_object_add_excl_fence(qobj->tbo.resv, + &fence->f); + virtio_gpu_object_wait(qobj, false); output->cursor.hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_UPDATE_CURSOR); output->cursor.resource_id = cpu_to_le32(qobj->hw_res_handle); -- 1.8.3.1
Seemingly Similar Threads
- [PATCH v2 3/6] virtio-gpu: wait for cursor updates finish
- [PATCH v3 3/7] virtio-gpu: wait for cursor updates finish
- [PATCH v3 3/7] virtio-gpu: wait for cursor updates finish
- [PATCH 3/5] virtio-gpu: switch to atomic cursor interfaces
- [PATCH 3/5] virtio-gpu: switch to atomic cursor interfaces