aco: Add tests for subdword register allocation
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7461>
This commit is contained in:
@@ -351,7 +351,7 @@ bool validate_ir(Program* program)
|
||||
has_literal |= op.isLiteral();
|
||||
}
|
||||
|
||||
check(!is_subdword || !has_const_sgpr || program->chip_class >= GFX9,
|
||||
check(!is_subdword || !has_const_sgpr || program->chip_class >= GFX9 || instr->opcode == aco_opcode::p_unit_test,
|
||||
"Sub-dword pseudo instructions can only take constants or SGPRs on GFX9+", instr.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user