From f431b4f110946a0f6e3822f870fbcd3d23c8317a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 9 Dec 2014 14:20:54 -0800 Subject: [PATCH] vc4: Mark VPM read setup as impacting VPM reads, not writes. Fixes assertion failures if we adjust scheduling priorities to emphasize VPM reads more. --- src/gallium/drivers/vc4/vc4_qpu_schedule.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/vc4/vc4_qpu_schedule.c b/src/gallium/drivers/vc4/vc4_qpu_schedule.c index 6bba66ad852..4bb9b3a5317 100644 --- a/src/gallium/drivers/vc4/vc4_qpu_schedule.c +++ b/src/gallium/drivers/vc4/vc4_qpu_schedule.c @@ -260,10 +260,16 @@ process_waddr_deps(struct schedule_state *state, struct schedule_node *n, break; case QPU_W_VPM: - case QPU_W_VPMVCD_SETUP: add_write_dep(state, &state->last_vpm, n); break; + case QPU_W_VPMVCD_SETUP: + if (is_a) + add_write_dep(state, &state->last_vpm_read, n); + else + add_write_dep(state, &state->last_vpm, n); + break; + case QPU_W_SFU_RECIP: case QPU_W_SFU_RECIPSQRT: case QPU_W_SFU_EXP: -- 2.30.2