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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user