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

Author: Georg Lehmann <[email protected]>
Date:   Sun Nov 12 19:40:32 2023 +0100

aco: add missing scc def for SALU quad broadcast

Cc: mesa-stable

Reviewed-by: Rhys Perry <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26163>

---

 src/amd/compiler/aco_instruction_selection.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_instruction_selection.cpp 
b/src/amd/compiler/aco_instruction_selection.cpp
index e0d2097deee..e8bec9ebf2c 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -8720,7 +8720,7 @@ visit_intrinsic(isel_context* ctx, nir_intrinsic_instr* 
instr)
          src =
             bld.sop2(Builder::s_and, bld.def(bld.lm), bld.def(s1, scc), src, 
Operand(exec, bld.lm));
          src = bld.sop2(Builder::s_and, bld.def(bld.lm), bld.def(s1, scc), 
mask_tmp, src);
-         bld.sop1(Builder::s_wqm, Definition(dst), src);
+         bld.sop1(Builder::s_wqm, Definition(dst), bld.def(s1, scc), src);
       } else if (instr->def.bit_size <= 32 || bool_use_valu) {
          unsigned excess_bytes = bool_use_valu ? 0 : 4 - instr->def.bit_size / 
8;
          Definition def = (excess_bytes || bool_use_valu) ? bld.def(v1) : 
Definition(dst);

Reply via email to