mesa: Add clamping for packing of integer data.
authorEric Anholt <eric@anholt.net>
Tue, 24 Jan 2012 22:16:59 +0000 (14:16 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 27 Jan 2012 20:01:08 +0000 (12:01 -0800)
commit8b97bb02fb1a55a6b0fe558ea1eb97bb4dae0347
treecc0bc2988aef66f9d348c1ac26ca61d230422fb3
parentde24ccabd6494125e10017e0914b3298ea3791ea
mesa: Add clamping for packing of integer data.

Mostly fixes piglit EXT_texture_integer/getteximage-clamping.  The
remaining failure involves precision loss on storing of int32 texture
data (something I knew was an issue, but wasn't trying to test).

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/pack.c