ir3/ra: fix copy-paste error

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
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40480>
This commit is contained in:
Rhys Perry 2026-03-17 14:45:34 +00:00 committed by Marge Bot
parent 54af9431d1
commit a6b86d43d3

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) &&