mesa: Fix packing of stencil bits to MESA_FORMAT_Z32_FLOAT_X24S8.
authorEric Anholt <eric@anholt.net>
Thu, 5 Jan 2012 01:53:39 +0000 (17:53 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 6 Jan 2012 17:49:08 +0000 (09:49 -0800)
commit61ea677bdd062b27db98b05e3a31877f33137839
tree435c38313d020cfccf80c7393d72c3d3e9cb38e7
parent38c6f1e6caf097c0aefc7a9b161e9da3d5235ea9
mesa: Fix packing of stencil bits to MESA_FORMAT_Z32_FLOAT_X24S8.

We were converting our ubyte stencil value to a float.  Just write it
as a uint, which overwrites the X24 part of X24S8 with 0 but shouldn't
matter.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/format_pack.c