From b0c8f316001c3050f268d9eca9dd22a1a8a822f6 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sun, 6 Apr 2025 10:20:29 +0200 Subject: [PATCH] aco: set opsel_hi to 1 for WMMA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is ignored by the hardware but LLVM requires it to disassemble GFX12 WMMA. Cc: mesa-stable Reviewed-by: Daniel Schürmann Part-of: --- 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 72ede3e6cc2..f28aec9b73d 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -7991,7 +7991,7 @@ visit_cmat_muladd(isel_context* ctx, nir_intrinsic_instr* instr) Operand B(as_vgpr(ctx, get_ssa_temp(ctx, instr->src[1].ssa))); Operand C(as_vgpr(ctx, get_ssa_temp(ctx, instr->src[2].ssa))); - VALU_instruction& vop3p = bld.vop3p(opcode, Definition(dst), A, B, C, 0, 0)->valu(); + VALU_instruction& vop3p = bld.vop3p(opcode, Definition(dst), A, B, C, 0, 0x7)->valu(); vop3p.neg_lo[0] = (signed_mask & 0x1) != 0; vop3p.neg_lo[1] = (signed_mask & 0x2) != 0; vop3p.clamp = clamp;