swrast: Directly map the stencil buffer in read_stencil_pixels.
authorEric Anholt <eric@anholt.net>
Wed, 12 Oct 2011 00:07:37 +0000 (17:07 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Nov 2011 06:29:52 +0000 (23:29 -0700)
commitff27e058bc93338ef0dbe322ab4e588ea4bbec0d
tree1281874e1016191ba644cbcc37b60917dc928481
parent492d223590569448c5666d421444102b50dda90d
swrast: Directly map the stencil buffer in read_stencil_pixels.

This avoids going through the wrapper that has to rewrite the data for
packed depth/stencil.  This isn't done in _swrast_read_stencil_span
because we don't want to map/unmap for each span.

v2: Move the unpack code to format_unpack.c.
v3: Fix signed/unsigned comparison.

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