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:
Georg Lehmann 2023-06-12 16:03:58 +02:00 committed by Marge Bot
parent b9854a9097
commit 2028df8757

View file

@ -289,7 +289,9 @@ validate_ir(Program* program)
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 */
Operand literal(s1);
for (unsigned i = 0; i < instr->operands.size(); i++) {