vkr: use passed queue_id rather than queue->base.id

It makes no difference, but is slightly nicer when combined with
https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/501
where queue_id can be 0.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
macos/master
Chia-I Wu 3 years ago
parent a2a30dee0b
commit 2c2908b296
  1. 2
      src/venus/vkr_context.c

@ -138,7 +138,7 @@ vkr_context_submit_fence_locked(struct virgl_context *base,
struct vkr_device *dev = queue->device; struct vkr_device *dev = queue->device;
struct vkr_queue_sync *sync = struct vkr_queue_sync *sync =
vkr_device_alloc_queue_sync(dev, flags, queue->base.id, fence_cookie); vkr_device_alloc_queue_sync(dev, flags, queue_id, fence_cookie);
if (!sync) if (!sync)
return -ENOMEM; return -ENOMEM;

Loading…
Cancel
Save