freedreno: better manage our WFI's
authorRob Clark <robclark@freedesktop.org>
Sat, 1 Feb 2014 15:53:00 +0000 (10:53 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 1 Feb 2014 17:10:17 +0000 (12:10 -0500)
commitdc00ec154bda15672861d1b508aa4aacdb306f68
tree0fb6c1ab574d518b30e5a11910f5f81889830c13
parent1fe9df8f29106013f5b6e4407b4877f6bf3b493d
freedreno: better manage our WFI's

Updates to non-banked registers, CP_LOAD_STATE, etc, need a WFI if there
is potentially pending rendering.  Track this better, and add fd_wfi()
calls everywhere that might potentially need CP_WAIT_FOR_IDLE.

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