freedreno/a3xx: missing wfi
authorRob Clark <robclark@freedesktop.org>
Sat, 29 Mar 2014 15:06:49 +0000 (11:06 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 30 Mar 2014 13:50:24 +0000 (09:50 -0400)
commit2346ea6347bd59a92638d94c12ef731bbfcd720a
tree9855ffcef8de49118ca42071f330152b138d4146
parentae5efaf2859db722cb8ef9be5ae5807068cbc1e5
freedreno/a3xx: missing wfi

RB_FRAME_BUFFER_DIMENSION is not a banked context register, so we need
to wait for the GPU to idle before updating it.  But we'd rather not
have unnecessary WFI's, so actually keep track if we need to emit it or
not.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/drivers/freedreno/freedreno_state.c