mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
b3e925a21b
commit
911fdce0b6
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue