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

2013-01-09 Thread Eric Anholt
Jordan Justen 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? pgp0

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

2013-01-04 Thread Jordan Justen
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. Signed-off-by: Jordan Justen --- src/mesa/main/pack.c |2 +- 1 file changed, 1 insertion(+), 1