summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2019-03-24 11:16:12 -0400
committerRob Clark <robdclark@gmail.com>2019-03-28 14:36:24 -0400
commitd71ce69d9c8e54abd316be5c893a8d49a3c7ba4b (patch)
treed2334b624531f66bf3966aa4d27d7c7d45e57daa
parentc557fcaf2baee27dc492ddc910b07f4adc5666b0 (diff)
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 <robdclark@gmail.com>
-rw-r--r--src/freedreno/ir3/ir3_sched.c2
1 files changed, 1 insertions, 1 deletions
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;
}