mesa: fix rgtc snorm decoding
authorRoland Scheidegger <sroland@vmware.com>
Mon, 22 Jul 2013 19:02:56 +0000 (21:02 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 24 Jul 2013 13:58:00 +0000 (15:58 +0200)
commitbceb5f36ec9a8fdda515102c3e52f41aa6cad1c5
tree804820637f09de7bdbcaeee3d30f7bda8872f00e
parent0acf3a8407fbeaa9d61731ce83fbe6de529e303c
mesa: fix rgtc snorm decoding

The codeword must be unsigned (otherwise will shift in 1's from above when
merging low/high parts so some texels decode wrong).
This also affects gallium's util/u_format_rgtc.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
src/mesa/main/texcompress_rgtc_tmp.h