freedreno/ir3: Make sched nodes before adding deps.

The mark_kill_path() during dep setup follows SSA srcs, which when a phi
is involved may include a def from later in the same block, that we hadn't
created yet.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15982>
This commit is contained in:
Emma Anholt
2022-04-18 12:37:19 -07:00
committed by Marge Bot
parent ce15bf19fb
commit d60282f5d2
+3 -2
View File
@@ -1142,10 +1142,11 @@ sched_dag_init(struct ir3_sched_ctx *ctx)
{
ctx->dag = dag_create(ctx);
foreach_instr (instr, &ctx->unscheduled_list) {
foreach_instr (instr, &ctx->unscheduled_list)
sched_node_init(ctx, instr);
foreach_instr (instr, &ctx->unscheduled_list)
sched_node_add_deps(instr);
}
dag_traverse_bottom_up(ctx->dag, sched_dag_max_delay_cb, NULL);
}