vc4: Fix a pasteo in scheduling condition flag usage.
authorEric Anholt <eric@anholt.net>
Sat, 2 Jul 2016 22:08:27 +0000 (15:08 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 4 Jul 2016 23:33:22 +0000 (16:33 -0700)
Noticed by code inspection.  This hasn't been too big of a deal, because
our cond usages all start out as adder ops, either MOVs or the FTOI for Z
writes.  MOVs *can* get converted to mul ops during scheduling, but
apparently we hadn't hit this.

src/gallium/drivers/vc4/vc4_qpu_schedule.c

index 09164b7493277608cadeaef272c5d00c258f10f8..4af605c109c58f513839c5e2d5f8ae7ae968e15b 100644 (file)
@@ -404,7 +404,7 @@ calculate_deps(struct schedule_state *state, struct schedule_node *n)
         }
 
         process_cond_deps(state, n, QPU_GET_FIELD(inst, QPU_COND_ADD));
-        process_cond_deps(state, n, QPU_GET_FIELD(inst, QPU_COND_ADD));
+        process_cond_deps(state, n, QPU_GET_FIELD(inst, QPU_COND_MUL));
         if (inst & QPU_SF)
                 add_write_dep(state, &state->last_sf, n);
 }