From f1db28da35873adc0b23918681a128060227519b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 8 Aug 2023 17:06:38 -0400 Subject: [PATCH] zink: add VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT_EXT now that there's more locking around pipeline caches this makes sense Part-of: --- src/gallium/drivers/zink/zink_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index e706f6f342c..a74ad8698ed 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -372,7 +372,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 = 0; + pcci.flags = screen->info.have_EXT_pipeline_creation_cache_control ? VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT_EXT : 0; pcci.initialDataSize = 0; pcci.pInitialData = NULL;