aco/gfx11.5: fix s_fmac acc to definition

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29245>
This commit is contained in:
Georg Lehmann
2023-09-21 20:41:45 +02:00
committed by Marge Bot
parent a90d4d340c
commit 6affd916b5
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -1358,7 +1358,8 @@ get_op_fixed_to_def(Instruction* instr)
instr->opcode == aco_opcode::v_fmac_legacy_f32 ||
instr->opcode == aco_opcode::v_pk_fmac_f16 || instr->opcode == aco_opcode::v_writelane_b32 ||
instr->opcode == aco_opcode::v_writelane_b32_e64 ||
instr->opcode == aco_opcode::v_dot4c_i32_i8) {
instr->opcode == aco_opcode::v_dot4c_i32_i8 || instr->opcode == aco_opcode::s_fmac_f32 ||
instr->opcode == aco_opcode::s_fmac_f16) {
return 2;
} else if (instr->opcode == aco_opcode::s_addk_i32 || instr->opcode == aco_opcode::s_mulk_i32 ||
instr->opcode == aco_opcode::s_cmovk_i32) {
+2
View File
@@ -617,6 +617,8 @@ alu_can_accept_constant(const aco_ptr<Instruction>& instr, unsigned operand)
return false;
switch (instr->opcode) {
case aco_opcode::s_fmac_f16:
case aco_opcode::s_fmac_f32:
case aco_opcode::v_mac_f32:
case aco_opcode::v_writelane_b32:
case aco_opcode::v_writelane_b32_e64: