radv: remove unnecessary check in radv_pipeline_nir_to_asm()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 25 Jul 2023 11:14:26 +0000 (13:14 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Aug 2023 06:04:52 +0000 (06:04 +0000)
If a NIR stage is present, there shouldn't be any compiled binaries
in the same stage slot.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24423>

src/amd/vulkan/radv_pipeline_graphics.c

index 17334d5..5e826f5 100644 (file)
@@ -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};