aco: fix validation of v_s_ opcodes
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Fixes: 284b9965e8 ("aco/gfx11.5+: allow sgpr dst for trans ops and use pseudo scalar ops on gfx12")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30477>
This commit is contained in:
@@ -435,7 +435,9 @@ validate_ir(Program* program)
|
||||
|
||||
if (instr->isVOPC() || instr->opcode == aco_opcode::v_readfirstlane_b32 ||
|
||||
instr->opcode == aco_opcode::v_readlane_b32 ||
|
||||
instr->opcode == aco_opcode::v_readlane_b32_e64) {
|
||||
instr->opcode == aco_opcode::v_readlane_b32_e64 ||
|
||||
instr_info.classes[(int)instr->opcode] ==
|
||||
instr_class::valu_pseudo_scalar_trans) {
|
||||
check(instr->definitions[0].regClass().type() == RegType::sgpr,
|
||||
"Wrong Definition type for VALU instruction", instr.get());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user