i965: Add support for SRGB DXT1 formats.
authorEric Anholt <eric@anholt.net>
Wed, 5 Jan 2011 00:29:26 +0000 (16:29 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 5 Jan 2011 00:43:35 +0000 (16:43 -0800)
commit06cb1a6a5bdba5654408e3568584e1ab168266b7
treeb88347f16bcae3a14e787db8bd8b8e5c91938be8
parent5a3f31575bf0657661c3e66a4c95c3298c78e441
i965: Add support for SRGB DXT1 formats.

This makes
fbo-generatemipmap-formats GL_EXT_texture_sRGB-s3tc
match
fbo-generatemipmap-formats GL_EXT_texture_compression_s3tc

and swrast in bad DXT1_RGBA alpha=0 handling, but it means we won't
unpack and repack someone's textures into uncompressed SARGB8 format.
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_context.c