Mesa (master): r600g: use blitter to do db->cb flushing.

Dave Airlie airlied at kemper.freedesktop.org
Thu Sep 23 06:02:16 UTC 2010


Module: Mesa
Branch: master
Commit: 2f8453eea3b5ff8d2818517753d3990490f699b8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f8453eea3b5ff8d2818517753d3990490f699b8

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Sep 23 13:34:36 2010 +1000

r600g: use blitter to do db->cb flushing.

use the blitter + custom stage to avoid doing a whole lot of state
setup by hand. This makes life a lot easier for doing this on evergreen
it also keeps all the state setup in one place.

We setup a custom context state at the start with a flag to denote
its for the flush, when it gets generated we generate the correct state
for the flush and no longer have to do it all by hand.

this should also make adding texture *to* depth easier.

---

 src/gallium/drivers/r600/eg_hw_states.c   |  152 +--------
 src/gallium/drivers/r600/r600_blit.c      |  546 +++--------------------------
 src/gallium/drivers/r600/r600_context.c   |    3 +-
 src/gallium/drivers/r600/r600_context.h   |   18 +-
 src/gallium/drivers/r600/r600_hw_states.c |  202 ++----------
 src/gallium/drivers/r600/r600_resource.h  |    8 +-
 src/gallium/drivers/r600/r600_screen.h    |    7 +-
 src/gallium/drivers/r600/r600_texture.c   |  168 ++++------
 8 files changed, 145 insertions(+), 959 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=2f8453eea3b5ff8d2818517753d3990490f699b8



More information about the mesa-commit mailing list