swrast: MapRenderbuffer in separate depth/stencil readpixels fastpath
authorEric Anholt <eric@anholt.net>
Wed, 12 Oct 2011 19:40:18 +0000 (12:40 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Nov 2011 06:29:52 +0000 (23:29 -0700)
commitf53680857aeb2ac1fb71a0bac958769d4f83952d
treefe6414441dc559710e3c5b3b3da79cd6f070e81c
parente452fbe8718b4b84b682a775c5dc0153166f6ccc
swrast: MapRenderbuffer in separate depth/stencil readpixels fastpath

This introduces two new span helper functions we'll want to use in
several places as we move to MapRenderbuffer, which pull out integer
depth and stencil values from a renderbuffer mapping based on the
renderbuffer format.

v2: Use format_unpack helper for stencil read.
v3: Clean up comment after conversion to format_unpack.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/swrast/s_depth.h
src/mesa/swrast/s_readpix.c