mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
b9854a9097
commit
2028df8757
1 changed files with 3 additions and 1 deletions
|
|
@ -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++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue