r600g: don't flush the dest caches on every draw
authorFredrik Höglund <fredrik@kde.org>
Tue, 19 Apr 2011 22:21:42 +0000 (00:21 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 19 Apr 2011 23:08:15 +0000 (09:08 +1000)
commit6067a2a67f9a7aab2aee051469bea8af03747a95
tree7a96c4b31a9a2b8cd28e8add48aff35af816c6a0
parent8b7f760f835f870b8f6af6c4d6613d44440f1dc5
r600g: don't flush the dest caches on every draw

Keep track of when the caches are dirty, and only flush them when
the framebuffer state is set and when the context is flushed.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/evergreend.h
src/gallium/drivers/r600/r600.h
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/winsys/r600/drm/evergreen_hw_context.c
src/gallium/winsys/r600/drm/r600_hw_context.c