venus: relocate tls ring hint from wsi init to queue submission

This ensures synchronous shader compilation doesn't occur on most render
threads.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35705>
This commit is contained in:
Yiwei Zhang 2025-06-23 16:12:17 -07:00 committed by Marge Bot
parent cf4a137459
commit 25d7c6cd4d
3 changed files with 4 additions and 4 deletions

View file

@ -222,8 +222,6 @@ vn_GetSwapchainGrallocUsage2ANDROID(
if (swapchainImageUsage & VK_SWAPCHAIN_IMAGE_USAGE_SHARED_BIT_ANDROID)
*grallocProducerUsage |= vk_android_get_front_buffer_usage();
vn_tls_set_async_pipeline_create();
return VK_SUCCESS;
}

View file

@ -1125,6 +1125,8 @@ vn_QueueSubmit(VkQueue queue,
{
VN_TRACE_FUNC();
vn_tls_set_async_pipeline_create();
struct vn_queue_submission submit = {
.batch_type = VK_STRUCTURE_TYPE_SUBMIT_INFO,
.queue_handle = queue,
@ -1144,6 +1146,8 @@ vn_QueueSubmit2(VkQueue queue,
{
VN_TRACE_FUNC();
vn_tls_set_async_pipeline_create();
struct vn_queue_submission submit = {
.batch_type = VK_STRUCTURE_TYPE_SUBMIT_INFO_2,
.queue_handle = queue,

View file

@ -243,8 +243,6 @@ vn_CreateSwapchainKHR(VkDevice device,
VN_WSI_PTR(pCreateInfo->oldSwapchain));
}
vn_tls_set_async_pipeline_create();
return vn_result(dev->instance, result);
}