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 <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21198>
This commit is contained in:
Samuel Pitoiset
2023-02-08 16:25:43 +01:00
committed by Marge Bot
parent 26896616c1
commit 46aee750c6
+4 -2
View File
@@ -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;
}