Add MapRenderbuffer implementations for software drivers.
authorEric Anholt <eric@anholt.net>
Thu, 13 Oct 2011 19:02:43 +0000 (12:02 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 1 Nov 2011 22:42:17 +0000 (15:42 -0700)
commit76d1275474d7b5ac2f0edf5856ae1c5fc234f0d9
tree237e9241c2cd2c749b3fcb979c2e4a15bb35da00
parenta25a452fbed6cd72b356ff96839d2097b3e4a4fe
Add MapRenderbuffer implementations for software drivers.

Mesa core's is generic for things like osmesa.

For swrast_dri.so, we have to do Y flipping.  The front-buffer path
isn't actually tested, though, because both before and after it fails
with a BadMatch in XGetImage.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/common/driverfuncs.c
src/mesa/drivers/dri/swrast/swrast.c
src/mesa/drivers/dri/swrast/swrast_priv.h
src/mesa/main/renderbuffer.c
src/mesa/main/renderbuffer.h
src/mesa/swrast/s_texrender.c