mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
ir3/sched: Use correct src index
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10591>
This commit is contained in:
parent
7df7bab03b
commit
af7f29a78e
1 changed files with 11 additions and 1 deletions
|
|
@ -935,7 +935,17 @@ sched_node_add_dep(struct ir3_instruction *instr, struct ir3_instruction *src, i
|
|||
|
||||
dag_add_edge(&sn->dag, &n->dag, NULL);
|
||||
|
||||
unsigned d = ir3_delayslots(src, instr, i, true);
|
||||
|
||||
/* There's a mismatch between the indices foreach_ssa_src_n uses and the
|
||||
* indices that ir3_delayslots expects, and additionally we don't want to
|
||||
* call it and get bogus answers on false dependencies.
|
||||
*/
|
||||
unsigned d = 0;
|
||||
if (i < instr->regs_count)
|
||||
d = ir3_delayslots(src, instr, i + 1, true);
|
||||
else if (src == instr->address)
|
||||
d = ir3_delayslots(src, instr, 0, true);
|
||||
|
||||
n->delay = MAX2(n->delay, d);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue