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:
Connor Abbott 2021-02-22 14:59:28 +01:00 committed by Marge Bot
parent af7f29a78e
commit 873e21f4e9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}