From 2c2908b296a39ae9626e4a33677c7d7f6200a92c Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 30 Nov 2021 16:25:04 -0800 Subject: [PATCH] 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 Reviewed-by: Yiwei Zhang Reviewed-by: Ryan Neph --- src/venus/vkr_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/venus/vkr_context.c b/src/venus/vkr_context.c index 51eed64..4eef830 100644 --- a/src/venus/vkr_context.c +++ b/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_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) return -ENOMEM;