ir3/ra: fix copy-paste error
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

I don't entirely understand what this is all doing, but this looks like a
copy-paste error.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Backport-to: 26.0
(cherry picked from commit a6b86d43d3)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40979>
This commit is contained in:
Rhys Perry 2026-03-17 14:45:34 +00:00 committed by Eric Engestrom
parent 9b19409ac8
commit fd9ffc0620
2 changed files with 2 additions and 2 deletions

View file

@ -524,7 +524,7 @@
"description": "ir3/ra: fix copy-paste error",
"nominated": true,
"nomination_type": 4,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -569,7 +569,7 @@ try_demote_instruction(struct ra_ctx *ctx, struct ir3_instruction *instr)
struct ra_interval *src0_interval =
(instr->srcs[0]->flags & IR3_REG_SSA) ? ra_interval_get(ctx, instr->srcs[0]->def) : NULL;
struct ra_interval *src1_interval =
(instr->srcs[0]->flags & IR3_REG_SSA) ? ra_interval_get(ctx, instr->srcs[0]->def) : NULL;
(instr->srcs[1]->flags & IR3_REG_SSA) ? ra_interval_get(ctx, instr->srcs[1]->def) : NULL;
if (!(src0_interval && src0_interval->spill_def) &&
!(src1_interval && src1_interval->spill_def) &&
!(instr->srcs[0]->flags & IR3_REG_IMMED) &&