drm/virtio: switch driver from bo->resv to bo->base.resv
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 5 Aug 2019 14:01:18 +0000 (16:01 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 6 Aug 2019 06:21:54 +0000 (08:21 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190805140119.7337-17-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_ioctl.c
drivers/gpu/drm/virtio/virtgpu_plane.c

index d379d2e..3c430dd 100644 (file)
@@ -396,7 +396,7 @@ static int virtio_gpu_transfer_from_host_ioctl(struct drm_device *dev,
                (vgdev, qobj->hw_res_handle,
                 vfpriv->ctx_id, offset, args->level,
                 &box, fence);
-       reservation_object_add_excl_fence(qobj->tbo.resv,
+       reservation_object_add_excl_fence(qobj->tbo.base.resv,
                                          &fence->f);
 
        dma_fence_put(&fence->f);
@@ -450,7 +450,7 @@ static int virtio_gpu_transfer_to_host_ioctl(struct drm_device *dev, void *data,
                        (vgdev, qobj,
                         vfpriv ? vfpriv->ctx_id : 0, offset,
                         args->level, &box, fence);
-               reservation_object_add_excl_fence(qobj->tbo.resv,
+               reservation_object_add_excl_fence(qobj->tbo.base.resv,
                                                  &fence->f);
                dma_fence_put(&fence->f);
        }
index f96c829..3dc08f9 100644 (file)
@@ -212,7 +212,7 @@ static void virtio_gpu_cursor_plane_update(struct drm_plane *plane,
                         0, 0, vgfb->fence);
                ret = virtio_gpu_object_reserve(bo, false);
                if (!ret) {
-                       reservation_object_add_excl_fence(bo->tbo.resv,
+                       reservation_object_add_excl_fence(bo->tbo.base.resv,
                                                          &vgfb->fence->f);
                        dma_fence_put(&vgfb->fence->f);
                        vgfb->fence = NULL;