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 <robdclark@chromium.org>
This commit is contained in:
parent
abfb31acdb
commit
9f61aa3f75
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue