i965: Add support for GL_SKIP_DECODE_EXT on other SRGB formats.
authorEric Anholt <eric@anholt.net>
Mon, 30 Jul 2012 18:04:57 +0000 (11:04 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 31 Jul 2012 18:14:23 +0000 (11:14 -0700)
commit19bd5936af7278c0cce0728e8d6dec1a951eaf58
treee154996b85ba3e6c275b83906f21d347c61aaf50
parent03ac5c54b55006a7014525c3dc1ebd6ed215b6be
i965: Add support for GL_SKIP_DECODE_EXT on other SRGB formats.

Fixes some failures in getteximage-formats.

v2: Remove stray include, and drop extra test for encoding == GL_SRGB --
    _mesa_get_srgb_format_linear() returns the same format if it wasn't SRGB.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=48120
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
NOTE: This is a candidate for the 8.0 branch.
src/mesa/drivers/dri/i965/brw_wm_surface_state.c