diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2016-08-31 19:26:53 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-09-20 15:25:43 +0300 |
commit | 30b9c96cf7b44d53b9165649c8be34ac234be324 (patch) | |
tree | 6d7c5b627a744733491141765f22d5cf03c8df0c /drivers/gpu/drm/virtio/virtgpu_fence.c | |
parent | 5c32c3dd8501b017e0ce139a2abcd23cc471b773 (diff) | |
download | linux-30b9c96cf7b44d53b9165649c8be34ac234be324.tar.xz |
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_fence.c')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_fence.c b/drivers/gpu/drm/virtio/virtgpu_fence.c index cf4418709e76..f3f70fa8a4c7 100644 --- a/drivers/gpu/drm/virtio/virtgpu_fence.c +++ b/drivers/gpu/drm/virtio/virtgpu_fence.c @@ -89,7 +89,7 @@ int virtio_gpu_fence_emit(struct virtio_gpu_device *vgdev, (*fence)->drv = drv; (*fence)->seq = ++drv->sync_seq; fence_init(&(*fence)->f, &virtio_fence_ops, &drv->lock, - 0, (*fence)->seq); + drv->context, (*fence)->seq); fence_get(&(*fence)->f); list_add_tail(&(*fence)->node, &drv->fences); spin_unlock_irqrestore(&drv->lock, irq_flags); |