mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 06:50:22 +01:00
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:
parent
cf4a137459
commit
25d7c6cd4d
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue