ir3: fix predicate splitting in scheduler

Fix up src->def->instr, not src->instr.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7014
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18096>
This commit is contained in:
Chia-I Wu
2022-08-16 15:10:23 -07:00
committed by Marge Bot
parent e9e81bf5f3
commit b1cb764316
2 changed files with 3 additions and 3 deletions

View File

@@ -196,8 +196,8 @@ struct ir3_register {
} array;
};
/* For IR3_REG_DEST, pointer back to the instruction containing this
* register.
/* For IR3_REG_SSA, dst registers contain pointer back to the instruction
* containing this register.
*/
struct ir3_instruction *instr;

View File

@@ -992,7 +992,7 @@ split_pred(struct ir3_sched_ctx *ctx)
/* original pred is scheduled, but new one isn't: */
new_pred->flags &= ~IR3_INSTR_MARK;
}
predicated->srcs[0]->instr = new_pred;
predicated->srcs[0]->def->instr = new_pred;
/* don't need to remove old dag edge since old pred is
* already scheduled:
*/