Gerd Hoffmann
2015-Oct-02 11:58 UTC
[PATCH v3 3/7] virtio-gpu: wait for cursor updates finish
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> --- drivers/gpu/drm/virtio/virtgpu_display.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index 4e160ef..c9c1427 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -90,6 +90,14 @@ static int virtio_gpu_crtc_cursor_set(struct drm_crtc *crtc, cpu_to_le32(64), cpu_to_le32(64), 0, 0, &fence); + ret = virtio_gpu_object_reserve(qobj, false); + if (!ret) { + reservation_object_add_excl_fence(qobj->tbo.resv, + &fence->f); + fence_put(&fence->f); + virtio_gpu_object_unreserve(qobj); + 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
Reasonably Related Threads
- [PATCH v3 3/7] virtio-gpu: wait for cursor updates finish
- [PATCH v2 3/6] virtio-gpu: wait for cursor updates finish
- [PATCH v2 3/6] 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