freedreno/ir3: sched fix
authorRob Clark <robdclark@gmail.com>
Sun, 24 Mar 2019 15:16:12 +0000 (11:16 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 28 Mar 2019 18:36:24 +0000 (14:36 -0400)
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>
src/freedreno/ir3/ir3_sched.c

index 4380fdf2f9a02487026c32e246114ad2f2c4c883..94a7fed4c95ecc9d5b414d3c597d0ca9a5436d4a 100644 (file)
@@ -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;
                }