util: fix incorrect Z bit masking in util_clear_depth_stencil()
authorBrian Paul <brianp@vmware.com>
Mon, 11 Feb 2013 23:39:42 +0000 (16:39 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Feb 2013 15:11:05 +0000 (08:11 -0700)
commit4bfdef87e66bfb2459af570351798d7754ddfb9f
treebf2ed302a1cf52ad0f46ba856bde7d7f77a3aa44
parenta79ce0c925809f0aeaa51b9c3122912c36c646d2
util: fix incorrect Z bit masking in util_clear_depth_stencil()

For PIPE_FORMAT_Z24_UNORM_S8_UINT, the Z bits are in the 24
least significant bits.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=60527
and http://bugs.freedesktop.org/show_bug.cgi?id=60524
and http://bugs.freedesktop.org/show_bug.cgi?id=60047

Note: This is a candidate for the stable branches.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_surface.c