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

Author: Tatsuyuki Ishi <[email protected]>
Date:   Thu Jan 26 22:18:40 2023 +0900

radv: Fix emitting tess indirect descriptors twice.

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20935>

---

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

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 2730308fab1..ba90306e906 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -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 {

Reply via email to