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

Author: Georg Lehmann <[email protected]>
Date:   Mon Aug 15 11:51:55 2022 +0200

aco/assembler: Fix v_cmpx with SDWA.

We need to use the implicit destination.

Fixes: baab6f18c91 ("aco: Optimize branching sequence during SSA elimination.")
Signed-off-by: Georg Lehmann <[email protected]>
Reviewed-by: Timur Kristóf <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18049>

---

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

diff --git a/src/amd/compiler/aco_assembler.cpp 
b/src/amd/compiler/aco_assembler.cpp
index 4a98991312f..cf406f92d0c 100644
--- a/src/amd/compiler/aco_assembler.cpp
+++ b/src/amd/compiler/aco_assembler.cpp
@@ -720,7 +720,7 @@ emit_instruction(asm_context& ctx, std::vector<uint32_t>& 
out, Instruction* inst
          uint32_t encoding = 0;
 
          if (instr->isVOPC()) {
-            if (instr->definitions[0].physReg() != vcc) {
+            if (instr->definitions[0].physReg() != vcc && 
instr->definitions[0].physReg() != exec) {
                encoding |= instr->definitions[0].physReg() << 8;
                encoding |= 1 << 15;
             }

Reply via email to