aco: allow literals on sub-dword p_parallelcopy
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7216>
This commit is contained in:
parent
74e2e9b682
commit
6db5fbf9f2
|
@ -332,7 +332,7 @@ bool validate_ir(Program* program)
|
|||
if (!instr->definitions[i].regClass().is_subdword())
|
||||
continue;
|
||||
Operand op = instr->operands[i];
|
||||
check(!op.isLiteral(), "Sub-dword copies cannot take literals", instr.get());
|
||||
check(program->chip_class >= GFX9 || !op.isLiteral(), "Sub-dword copies cannot take literals", instr.get());
|
||||
if (op.isConstant() || (op.hasRegClass() && op.regClass().type() == RegType::sgpr))
|
||||
check(program->chip_class >= GFX9, "Sub-dword pseudo instructions can only take constants or SGPRs on GFX9+", instr.get());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue