Module: Mesa Branch: main Commit: efbb6de0351f671e56787dc831c4b6c563aa516c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=efbb6de0351f671e56787dc831c4b6c563aa516c
Author: Samuel Pitoiset <[email protected]> Date: Tue Jul 25 13:14:26 2023 +0200 radv: remove unnecessary check in radv_pipeline_nir_to_asm() If a NIR stage is present, there shouldn't be any compiled binaries in the same stage slot. Signed-off-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24423> --- src/amd/vulkan/radv_pipeline_graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_pipeline_graphics.c b/src/amd/vulkan/radv_pipeline_graphics.c index 17334d5646f..5e826f538b9 100644 --- a/src/amd/vulkan/radv_pipeline_graphics.c +++ b/src/amd/vulkan/radv_pipeline_graphics.c @@ -2252,7 +2252,7 @@ radv_pipeline_nir_to_asm(struct radv_device *device, struct radv_graphics_pipeli struct radv_shader_binary **binaries, struct radv_shader_binary **gs_copy_binary) { for (int s = MESA_VULKAN_SHADER_STAGES - 1; s >= 0; s--) { - if (!(active_nir_stages & (1 << s)) || pipeline->base.shaders[s]) + if (!(active_nir_stages & (1 << s))) continue; nir_shader *shaders[2] = {stages[s].nir, NULL};
