mesa pack: handle uint and int clamping properly
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 25 Jun 2012 21:08:37 +0000 (14:08 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 15 Aug 2012 00:07:42 +0000 (17:07 -0700)
commit7ef270867cb1f3e19067c93449e48987a32730d3
tree9bcc2f86d45f84a469676f1e6848d527407442ca
parent1938501fbfb5052b1de7d78dc7ca8a8738f814e2
mesa pack: handle uint and int clamping properly

Rename _mesa_pack_rgba_span_int to _mesa_pack_rgba_span_from_uints.
Add _mesa_pack_rgba_span_from_ints.

These separate routines allow the integer clamping to be handled
properly for signed versus unsigned integers.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/pack.c
src/mesa/main/pack.h
src/mesa/main/readpix.c
src/mesa/main/texgetimage.c