From e6734ed39ec7a085c015c0946e87dc229ffc0af7 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Thu, 14 May 2026 10:45:23 -0700 Subject: [PATCH] venus: fix a renderer side queue timeline bound race Timeline assignment has been asynchronous upon vkGetDeviceQueue2. However, fence submission via vq can get ahead of it for things like ring and vq synchronization. This change fixes vkGetDeviceQueue2 to be synchronous instead, which is fine since it's off the critical path. Cc: mesa-stable Part-of: --- src/virtio/vulkan/vn_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtio/vulkan/vn_device.c b/src/virtio/vulkan/vn_device.c index 0449feb30b0..f7a1f1cc6a0 100644 --- a/src/virtio/vulkan/vn_device.c +++ b/src/virtio/vulkan/vn_device.c @@ -100,8 +100,8 @@ vn_queue_init(struct vn_device *dev, }; VkQueue queue_handle = vn_queue_to_handle(queue); - vn_async_vkGetDeviceQueue2(dev->primary_ring, vn_device_to_handle(dev), - &device_queue_info, &queue_handle); + vn_call_vkGetDeviceQueue2(dev->primary_ring, vn_device_to_handle(dev), + &device_queue_info, &queue_handle); return VK_SUCCESS; }