From: Rob Clark Date: Sun, 24 Mar 2019 15:16:12 +0000 (-0400) Subject: freedreno/ir3: sched fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d71ce69d9c8e54abd316be5c893a8d49a3c7ba4b;p=mesa.git freedreno/ir3: sched fix Not sure why new-style frag inputs start triggering this. But we probably shouldn't consider src's from other blocks. Signed-off-by: Rob Clark --- diff --git a/src/freedreno/ir3/ir3_sched.c b/src/freedreno/ir3/ir3_sched.c index 4380fdf2f9a..94a7fed4c95 100644 --- a/src/freedreno/ir3/ir3_sched.c +++ b/src/freedreno/ir3/ir3_sched.c @@ -452,7 +452,7 @@ find_instr_recursive(struct ir3_sched_ctx *ctx, struct ir3_sched_notes *notes, /* find unscheduled srcs: */ foreach_ssa_src(src, instr) { - if (!is_scheduled(src)) { + if (!is_scheduled(src) && (src->block == instr->block)) { debug_assert(nsrcs < ARRAY_SIZE(srcs)); srcs[nsrcs++] = src; }