ir3/postsched: Use correct src index
Match what ir3_delay_calc() does. Caught by an assert later. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10591>
This commit is contained in:
parent
af7f29a78e
commit
873e21f4e9
|
@ -423,7 +423,7 @@ calculate_deps(struct ir3_postsched_deps_state *state,
|
|||
|
||||
struct ir3_postsched_node *dep = dep_reg(state, reg->num + b);
|
||||
if (dep && (state->direction == F)) {
|
||||
unsigned d = ir3_delayslots(dep->instr, node->instr, i, true);
|
||||
unsigned d = ir3_delayslots(dep->instr, node->instr, i + 1, true);
|
||||
node->delay = MAX2(node->delay, d);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue