Module: Mesa
Branch: main
Commit: 7976316f3ec841e4955db04300e53dc01e84ac6a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7976316f3ec841e4955db04300e53dc01e84ac6a

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Feb  8 14:21:50 2023 +0100

radv: fix skipping graphics pipeline compilation when the FS is NULL

Fixes: 3eb97b9d334 ("radv: skip compilation when possible with GPL 
fast-linking")
Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21192>

---

 src/amd/vulkan/radv_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 6d46783f1e5..18d3eb6a311 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3478,7 +3478,7 @@ radv_skip_graphics_pipeline_compile(const struct 
radv_graphics_pipeline *pipelin
 
    /* Do not skip when the PS epilog needs to be compiled. */
    if (!radv_pipeline_needs_dynamic_ps_epilog(pipeline) &&
-       (pipeline->active_stages & VK_SHADER_STAGE_FRAGMENT_BIT) &&
+       pipeline->base.shaders[MESA_SHADER_FRAGMENT] &&
        pipeline->base.shaders[MESA_SHADER_FRAGMENT]->info.ps.has_epilog &&
        !pipeline->ps_epilog)
       return false;

Reply via email to