[Mesa-dev] [PATCH 02/23] pack: adjust clamping for int=>ubyte conversion
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
Size: 197 bytes
Desc: not available
More information about the mesa-dev