From fc193ab4dbb9fd7e3f45a14c333ef5403fad7f56 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Tue, 31 Jan 2023 18:04:29 +0100 Subject: [PATCH] aco/ra: set opsel_hi to zero when converting to VOP2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise the new modifier validation will fail. Reviewed-by: Daniel Schürmann Reviewed-by: Timur Kristóf Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 54d41742927..5a7adb3460b 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -2637,6 +2637,7 @@ optimize_encoding_vop2(Program* program, ra_ctx& ctx, RegisterFile& register_fil static_assert(sizeof(VOP2_instruction) <= sizeof(VOP3P_instruction), "Invalid direct instruction cast."); instr->format = Format::VOP2; + instr->valu().opsel_hi = 0; switch (instr->opcode) { case aco_opcode::v_mad_f32: instr->opcode = aco_opcode::v_mac_f32; break; case aco_opcode::v_fma_f32: instr->opcode = aco_opcode::v_fmac_f32; break;