From 46aee750c6bc1d9ceb222820f6019c1fcf4b5daf Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 8 Feb 2023 16:25:43 +0100 Subject: [PATCH] radv: stop skipping the cache for monolithic graphics pipelines with GPL Only libraries and optimized (LTO) pipelines are still unsupported, but there is no reason to skip the cache for monolithic pipelines. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_pipeline.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index ba79e87c67b..400fc21dc70 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3571,10 +3571,12 @@ radv_graphics_pipeline_compile(struct radv_graphics_pipeline *pipeline, /* Skip the shaders cache when any of the below are true: * - fast-linking is enabled because it's useless to cache unoptimized pipelines * - shaders are captured because it's for debugging purposes - * - RADV_PERFTEST=gpl is enabled because it's unsupported + * - libraries are created with GPL + * - optimized (LTO) pipelines are created with GPL */ if (fast_linking_enabled || keep_executable_info || - (device->instance->perftest_flags & RADV_PERFTEST_GPL)) { + (pCreateInfo->flags & VK_PIPELINE_CREATE_LIBRARY_BIT_KHR) || + (lib_flags & ALL_GRAPHICS_LIB_FLAGS) != ALL_GRAPHICS_LIB_FLAGS) { skip_shaders_cache = true; }