From: Eric Anholt Date: Tue, 9 Dec 2014 22:20:54 +0000 (-0800) Subject: vc4: Mark VPM read setup as impacting VPM reads, not writes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f431b4f110946a0f6e3822f870fbcd3d23c8317a;p=mesa.git vc4: Mark VPM read setup as impacting VPM reads, not writes. Fixes assertion failures if we adjust scheduling priorities to emphasize VPM reads more. --- 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: