From ddb0f5f4e6a993277c1ba2992d1cde2b878b81d6 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Thu, 15 Aug 2024 08:46:35 +0200 Subject: [PATCH] ir3: fix wrong dstn used in postsched Fixes: 750e6843c02 ("ir3: Rewrite postsched dependency handling") Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3_postsched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_postsched.c b/src/freedreno/ir3/ir3_postsched.c index dbbe7fb43d5..3f9fc0def26 100644 --- a/src/freedreno/ir3/ir3_postsched.c +++ b/src/freedreno/ir3/ir3_postsched.c @@ -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;