From: Samuel Pitoiset Date: Fri, 7 Apr 2023 08:55:24 +0000 (+0200) Subject: radv: simplify a check when retaining NIR shaders X-Git-Tag: upstream/23.3.3~10302 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34fa60e138dc344cf8bf9f3507a467cf796d3338;p=platform%2Fupstream%2Fmesa.git radv: simplify a check when retaining NIR shaders The RETAIN flag is only allowed with graphics libs. Signed-off-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index ca13c71..311ebe4 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3271,7 +3271,7 @@ radv_graphics_pipeline_compile(struct radv_graphics_pipeline *pipeline, if (found_in_application_cache) pipeline_feedback.flags |= VK_PIPELINE_CREATION_FEEDBACK_APPLICATION_PIPELINE_CACHE_HIT_BIT; - if (pipeline->base.type == RADV_PIPELINE_GRAPHICS_LIB && retain_shaders) { + if (retain_shaders) { /* For graphics pipeline libraries created with the RETAIN_LINK_TIME_OPTIMIZATION flag, we * still need to compile the SPIR-V to NIR because we can't know if the LTO pipelines will * be find in the shaders cache.