OSDN Git Service

swrast: Make the packed depth/stencil read fastpath use MapRenderbuffer.
authorEric Anholt <eric@anholt.net>
Wed, 12 Oct 2011 03:41:01 +0000 (20:41 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Nov 2011 06:29:52 +0000 (23:29 -0700)
commitb832ac974f2b5a0f07ff9b7bb9338e8d6942eb74
treefb6bd704b944d2c84df0f7f82d18adff249562a4
parentff27e058bc93338ef0dbe322ab4e588ea4bbec0d
swrast: Make the packed depth/stencil read fastpath use MapRenderbuffer.

This also makes it handle 24/8 vs 8/24, fixing piglit
depthstencil-default_fb-readpixels-24_8 on i965.  While here, avoid
incorrectly fast-pathing if packing->SwapBytes is set.

v2: Move the unpack code to format_unpack.c, fix BUFFER_DEPTH typo
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