[Mesa-dev] [PATCH 02/23] pack: adjust clamping for int=>ubyte conversion

Eric Anholt eric at anholt.net
Wed Jan 9 10:51:52 PST 2013

Jordan Justen <jordan.l.justen at intel.com> writes:

> gles3conform expects than when converting from a signed
> int to an unsigned byte, the output will be clamped at a
> max of 0x7f. This impacts conversion from
> int16_t => uint8_t and int32_t => uint8_t.

Wait, why would a uint8_t be clamped to 0x7f instead of 0xff?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130109/35b68692/attachment.pgp>

More information about the mesa-dev mailing list