From f18827e0153c555d2f3897b57f8ea0349b5bb41f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 4 Jan 2023 10:15:17 -0500 Subject: [PATCH] zink: stop using VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT this used to be fine back when there was only one thread doing cache management, but now the cache is used by precompile threads too, so let the driver do sync fixes #7660 Fixes: 41ffb15de56 ("zink: implement async gfx precompile") Part-of: --- src/gallium/drivers/zink/zink_screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 93c723a495d..13cd018782b 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -337,8 +337,7 @@ cache_get_job(void *data, void *gdata, int thread_index) VkPipelineCacheCreateInfo pcci; pcci.sType = VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO; pcci.pNext = NULL; - pcci.flags = screen->info.have_EXT_pipeline_creation_cache_control || screen->info.feats13.pipelineCreationCacheControl ? - VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT : 0; + pcci.flags = 0; pcci.initialDataSize = 0; pcci.pInitialData = NULL;