swrast: stop using depth/stencil wrappers in CopyPixels code
authorBrian Paul <brianp@vmware.com>
Sat, 24 Dec 2011 15:54:26 +0000 (08:54 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Dec 2011 15:59:54 +0000 (08:59 -0700)
commite6c6b1c147f5079a1608234294e2b6cd29dd2a64
treed88f7844a915a88e76408b15f0f3219fefb8bbe2
parentbd31fb346398ca350a5e251a5d104ee1c8b33454
swrast: stop using depth/stencil wrappers in CopyPixels code

The functions that read depth/stencil values understand all (packed)
depth/stencil buffer formats now so there's no reason to use the
wrappers.

Also, improve the format checks in fast_copy_pixels() to catch mismatched
depth/stencil cases.

v2: fix the test for combined depth+stencil buffers, per Eric.
src/mesa/swrast/s_copypix.c