i965/gen4: Work around missing sRGB RGB DXT1 support.
authorEric Anholt <eric@anholt.net>
Wed, 6 Feb 2013 01:39:35 +0000 (17:39 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 13 Feb 2013 18:19:21 +0000 (10:19 -0800)
commitddc2b453d02f2a9460efcc6c6198f56ba89e87fe
tree48a41c58125a1f0e0701ec5103a00690aaf60898
parentdfb57e7d1b005e208684316a6939939f4fb73352
i965/gen4: Work around missing sRGB RGB DXT1 support.

The hardware just doesn't support it.  I suspect this was a regression from
the move to fixed MESA_FORMATs for compressed textures and that previously we
were storing uncompressed for this or something.

Fixes GPU hangs in piglit "texwrap GL_EXT_texture_sRGB-s3tc bordercolor
swizzled" on my GM965.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c