Commit 9f61aa3f authored by Rob Clark's avatar Rob Clark

freedreno/a6xx: WFI in program stateobj too

This "fixes" hangs seen w/ various android games.  I think a similar
issue to with constant state, we need to avoid CP_LOAD_STATE until
previous draw completes.

It isn't entirely clear why blob doesn't need to do this, but it might
have a different way to accomplish the same thing.
Signed-off-by: Rob Clark's avatarRob Clark <robdclark@chromium.org>
parent abfb31ac
Pipeline #37856 passed with stages
in 12 minutes and 47 seconds
......@@ -326,6 +326,8 @@ setup_stateobj(struct fd_ringbuffer *ring, struct fd6_program_state *state,
uint8_t psize_loc = ~0;
int i, j;
OUT_WFI5(ring);
setup_stages(state, s, binning_pass);
bool sample_shading = s[FS].v->per_samp | key->sample_shading;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment