ir3: fix wrong dstn used in postsched

Fixes: 750e6843c0 ("ir3: Rewrite postsched dependency handling")
Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28341>
This commit is contained in:
Job Noorman
2024-08-15 08:46:35 +02:00
committed by Marge Bot
parent 28d2a27030
commit ddb0f5f4e6
+1 -1
View File
@@ -404,7 +404,7 @@ add_single_reg_dep(struct ir3_postsched_deps_state *state,
if (src_n >= 0 && dep && state->direction == F) {
struct ir3_compiler *compiler = state->ctx->ir->compiler;
/* get the dst_n this corresponds to */
unsigned dst_n = state->dst_n[num];
unsigned dst_n = *dst_n_ptr;
d = ir3_delayslots_with_repeat(compiler, dep->instr, node->instr, dst_n, src_n);
if (is_sy_producer(dep->instr))
node->has_sy_src = true;