zink: check core feature for pipeline cache control
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 13 Oct 2022 11:58:10 +0000 (07:58 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Oct 2022 01:16:30 +0000 (01:16 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19065>

src/gallium/drivers/zink/zink_screen.c

index f4369fe..67b0089 100644 (file)
@@ -281,7 +281,8 @@ 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 ? VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT : 0;
+   pcci.flags = screen->info.have_EXT_pipeline_creation_cache_control || screen->info.feats13.pipelineCreationCacheControl ?
+                VK_PIPELINE_CACHE_CREATE_EXTERNALLY_SYNCHRONIZED_BIT : 0;
    pcci.initialDataSize = 0;
    pcci.pInitialData = NULL;