intel: Enable GL_OES_compressed_ETC1_RGB8_texture
authorChad Versace <chad.versace@linux.intel.com>
Tue, 19 Jun 2012 01:25:25 +0000 (18:25 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 16 Jul 2012 21:11:12 +0000 (14:11 -0700)
commita5a34b153d494ad4374e7b2c8ea13b1073a887e2
treed2fd53dd8e1a34c04fd5493c3d4bdd67c8b38117
parent8ec721264c7ae0f73a520362963b2691bf098b9b
intel: Enable GL_OES_compressed_ETC1_RGB8_texture

Enable it for all hardware.

No current hardware supports ETC1, so this patch implements it by
translating the ETC1 data to RGBX data during the call to
glCompressedTexImage2D(). For details, see the doxygen for
intel_mipmap_tree::wraps_etc1.

Passes the Piglit test spec/OES_compressed_ETC1_RGB8_texture/miptree and
the ETC1 test in the GLES2 conformance suite.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_extensions.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h