aco: don't validate p_constaddr_addlo/p_resumeaddr_addlo operands
These can have two literals so validation would fail. Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23507>
This commit is contained in:
@@ -289,7 +289,9 @@ validate_ir(Program* program)
|
|||||||
instr.get());
|
instr.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (instr->isSALU() || instr->isVALU()) {
|
if ((instr->isSALU() && instr->opcode != aco_opcode::p_constaddr_addlo &&
|
||||||
|
instr->opcode != aco_opcode::p_resumeaddr_addlo) ||
|
||||||
|
instr->isVALU()) {
|
||||||
/* check literals */
|
/* check literals */
|
||||||
Operand literal(s1);
|
Operand literal(s1);
|
||||||
for (unsigned i = 0; i < instr->operands.size(); i++) {
|
for (unsigned i = 0; i < instr->operands.size(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user