venus: fix a renderer side queue timeline bound race
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41582>
This commit is contained in:
Yiwei Zhang 2026-05-14 10:45:23 -07:00 committed by Marge Bot
parent 0be2d71ad1
commit e6734ed39e

View file

@ -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;
}