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:
committed by
Marge Bot
parent
8fb66187ec
commit
77c9629046
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user