aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/virtio/virtgpu_drv.h
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2016-08-31 12:26:53 -0400
committerGerd Hoffmann <kraxel@redhat.com>2016-09-20 14:25:43 +0200
commit30b9c96cf7b44d53b9165649c8be34ac234be324 (patch)
tree6d7c5b627a744733491141765f22d5cf03c8df0c /drivers/gpu/drm/virtio/virtgpu_drv.h
parentdrm/virtio: drop virtio_gpu_execbuffer_ioctl() wrapping (diff)
downloadlinux-dev-30b9c96cf7b44d53b9165649c8be34ac234be324.tar.xz
linux-dev-30b9c96cf7b44d53b9165649c8be34ac234be324.zip
drm/virtio: add real fence context and seqno
virtio fences were created with no fence context, which would make then clash with an allocated fence context. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Message-id: 1472660813-28219-2-git-send-email-gustavo@padovan.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_drv.h')
-rw-r--r--drivers/gpu/drm/virtio/virtgpu_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h
index b18ef3111f0c..06ad9238044e 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.h
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.h
@@ -75,6 +75,7 @@ typedef void (*virtio_gpu_resp_cb)(struct virtio_gpu_device *vgdev,
struct virtio_gpu_fence_driver {
atomic64_t last_seq;
uint64_t sync_seq;
+ uint64_t context;
struct list_head fences;
spinlock_t lock;
};