aco/gfx12: don't allow vgpr operands for pseudo scalar

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
2024-05-19 20:26:58 +02:00
committed by Marge Bot
parent d58d0274a8
commit 343420fd4e
+1 -1
View File
@@ -668,7 +668,7 @@ valu_can_accept_vgpr(aco_ptr<Instruction>& instr, unsigned operand)
instr->opcode == aco_opcode::v_readlane_b32 ||
instr->opcode == aco_opcode::v_readlane_b32_e64)
return operand == 0;
return true;
return instr_info.classes[(int)instr->opcode] != instr_class::valu_pseudo_scalar_trans;
}
/* check constant bus and literal limitations */