radv: Fix emitting tess indirect descriptors twice.
authorTatsuyuki Ishi <ishitatsuyuki@gmail.com>
Thu, 26 Jan 2023 13:18:40 +0000 (22:18 +0900)
committerMarge Bot <emma+marge@anholt.net>
Fri, 27 Jan 2023 18:31:58 +0000 (18:31 +0000)
This fixes a copy-paste error found by manual inspection.

TES may be merged into GS with certain HW stage mappings, which lead to
duplicate set-register commands to be emitted with the old code.

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

src/amd/vulkan/radv_cmd_buffer.c

index 2730308..ba90306 100644 (file)
@@ -4528,7 +4528,7 @@ radv_flush_indirect_descriptor_sets(struct radv_cmd_buffer *cmd_buffer,
          radv_emit_userdata_address(device, cs, pipeline, MESA_SHADER_TESS_CTRL,
                                     AC_UD_INDIRECT_DESCRIPTOR_SETS, va);
 
-      if (radv_pipeline_has_stage(graphics_pipeline, MESA_SHADER_TESS_CTRL))
+      if (radv_pipeline_has_stage(graphics_pipeline, MESA_SHADER_TESS_EVAL))
          radv_emit_userdata_address(device, cs, pipeline, MESA_SHADER_TESS_EVAL,
                                     AC_UD_INDIRECT_DESCRIPTOR_SETS, va);
    } else {