util: Cleanup util_pack_z_stencil and friends.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 6 Oct 2010 09:09:37 +0000 (10:09 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 6 Oct 2010 18:08:18 +0000 (19:08 +0100)
commit33f88b3492af1f4f7e78c3688d481f1dee189822
treeb592510b6abacef297bf9c66ed4d8737328903ff
parent87dd859b342b844add906358810445da21b6b092
util: Cleanup util_pack_z_stencil and friends.

- Handle PIPE_FORMAT_Z32_FLOAT packing correctly.

- In the integer version z shouldn't be passed as as double.

- Make it clear that the integer versions should only be used for masks.

- Make integer type sizes explicit (uint32_t for now, although
  uint64_t will be necessary later to encode f32_s8_x24).
src/gallium/auxiliary/util/u_pack_color.h