From: Daniel Schürmann Date: Wed, 1 Jun 2022 15:16:55 +0000 (+0200) Subject: aco: correctly validate v_fma_mixhi_f16 register assignment X-Git-Tag: upstream/22.3.5~6880 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c298ab0d2362db180dfb8d619125916aa66c07a8;p=platform%2Fupstream%2Fmesa.git aco: correctly validate v_fma_mixhi_f16 register assignment Reviewed-by: Georg Lehmann Part-of: --- diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp index 88b028d..45ae5be 100644 --- a/src/amd/compiler/aco_ir.cpp +++ b/src/amd/compiler/aco_ir.cpp @@ -446,6 +446,7 @@ instr_is_16bit(amd_gfx_level gfx_level, aco_opcode op) case aco_opcode::v_div_fixup_f16: case aco_opcode::v_interp_p2_f16: case aco_opcode::v_fma_mixlo_f16: + case aco_opcode::v_fma_mixhi_f16: /* VOP2 */ case aco_opcode::v_mac_f16: case aco_opcode::v_madak_f16: diff --git a/src/amd/compiler/aco_validate.cpp b/src/amd/compiler/aco_validate.cpp index dd474ef..87b5bee 100644 --- a/src/amd/compiler/aco_validate.cpp +++ b/src/amd/compiler/aco_validate.cpp @@ -841,6 +841,7 @@ validate_subdword_definition(amd_gfx_level gfx_level, const aco_ptr return true; switch (instr->opcode) { + case aco_opcode::v_fma_mixhi_f16: case aco_opcode::buffer_load_ubyte_d16_hi: case aco_opcode::buffer_load_sbyte_d16_hi: case aco_opcode::buffer_load_short_d16_hi: