[Mesa-dev] [PATCH] meta: fix broken sRGB mipmap generation

Henri Verbeet hverbeet at gmail.com
Sat Sep 17 10:52:43 PDT 2011


On 17 September 2011 19:33, Brian Paul <brian.e.paul at gmail.com> wrote:
> From: Brian Paul <brianp at vmware.com>
>
> If we're generating a mipmap for an sRGB texture we need to bypass
> sRGB->linear conversion.  Otherwise the destination mipmap level
> (drawn with a textured quad) will have the wrong colors.
> If we can't turn of sRGB->linear conversion (GL_EXT_texture_sRGB_decode)
> we need to use the software fallback for mipmap generation.
>
Although not directly related to the issue this patch fixes, note that
issue 24 in EXT_texture_sRGB (and issue 10 in EXT_texture_sRGB_decode
is related to that) recommends to do filtering in linear space.


More information about the mesa-dev mailing list