From f2916b3df427b5150c05cf18355ab01a76292ad2 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 13 Aug 2025 14:48:18 +0200 Subject: [PATCH] r600/sfn: Fix the mods when splitting ALU op In preparation of splitting 64 bit two slot ops with one 32 bit dest register use the right start slot. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp b/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp index a88960cf15b..49220e6387a 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp @@ -844,7 +844,7 @@ AluInstr::split(ValueFactory& vf) auto instr = new AluInstr(opcode, dst, src, {}, 1); instr->set_blockid(block_id(), index()); - if (s == 0 || !m_alu_flags.test(alu_64bit_op)) { + if (k == 0 || !m_alu_flags.test(alu_64bit_op)) { if (has_source_mod(nsrc * k + 0, mod_neg)) instr->set_source_mod(0, mod_neg); if (has_source_mod(nsrc * k + 1, mod_neg))