mesa: rewrite accum buffer support
authorBrian Paul <brianp@vmware.com>
Sat, 3 Dec 2011 17:04:18 +0000 (10:04 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 8 Dec 2011 15:56:30 +0000 (08:56 -0700)
commit122c6768e3d4c1d1b57203eca70569f9301baab5
tree00e32726c0dd459eb205f5718abe4a3da182b387
parentaa6cb952c917f4280d75b322c05885fcf7eb6cdb
mesa: rewrite accum buffer support

Implemented in terms of renderbuffer mapping/unmapping and format
packing/unpacking functions.

The swrast and state tracker code for implementing accumulation are
unused and will be removed in the next commit.

v2: don't use memcpy() in _mesa_clear_accum_buffer()
v3: don't allocate MAX_WIDTH arrays, be more careful with mapping flags

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/SConscript
src/mesa/drivers/common/driverfuncs.c
src/mesa/drivers/dri/intel/intel_pixel.c
src/mesa/main/accum.c
src/mesa/main/accum.h
src/mesa/sources.mak
src/mesa/state_tracker/st_cb_clear.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_context.c
src/mesa/swrast/s_clear.c