mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 15:40:11 +01:00
aco/validate: ensure that Operand and Definition size matches for parallelcopies
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8260>
This commit is contained in:
parent
8fb66187ec
commit
77c9629046
1 changed files with 1 additions and 0 deletions
|
|
@ -388,6 +388,7 @@ bool validate_ir(Program* program)
|
|||
} else if (instr->opcode == aco_opcode::p_parallelcopy) {
|
||||
check(instr->definitions.size() == instr->operands.size(), "Number of Operands does not match number of Definitions", instr.get());
|
||||
for (unsigned i = 0; i < instr->operands.size(); i++) {
|
||||
check(instr->definitions[i].bytes() == instr->operands[i].bytes(), "Operand and Definition size must match", instr.get());
|
||||
if (instr->operands[i].isTemp())
|
||||
check((instr->definitions[i].getTemp().type() == instr->operands[i].regClass().type()) ||
|
||||
(instr->definitions[i].getTemp().type() == RegType::vgpr && instr->operands[i].regClass().type() == RegType::sgpr),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue