Re: [Mesa-dev] [PATCH V3 02/30] mesa: fix packing of float texels to GL_SHORT/GL_BYTE

2014-04-06 Thread Kenneth Graunke
On 04/02/2014 01:04 AM, Chris Forbes wrote: > Previously, we would unpack the texels to floats using *_TO_FLOAT_TEX, > and then pack them into the desired format using FLOAT_TO_*. Unfortunately, > this isn't quite the inverse operation, and so some texel values would > end up off-by-one. These fun

Re: [Mesa-dev] [PATCH V3 02/30] mesa: fix packing of float texels to GL_SHORT/GL_BYTE

2014-04-02 Thread Brian Paul
On 04/02/2014 02:04 AM, Chris Forbes wrote: Previously, we would unpack the texels to floats using *_TO_FLOAT_TEX, and then pack them into the desired format using FLOAT_TO_*. Unfortunately, this isn't quite the inverse operation, and so some texel values would end up off-by-one. This fixes the

[Mesa-dev] [PATCH V3 02/30] mesa: fix packing of float texels to GL_SHORT/GL_BYTE

2014-04-02 Thread Chris Forbes
Previously, we would unpack the texels to floats using *_TO_FLOAT_TEX, and then pack them into the desired format using FLOAT_TO_*. Unfortunately, this isn't quite the inverse operation, and so some texel values would end up off-by-one. This fixes the GL_RGB8_SNORM and GL_RGB16_SNORM subcases in p