summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_extensions.c
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-06-18 18:25:25 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-07-16 14:11:12 -0700
commita5a34b153d494ad4374e7b2c8ea13b1073a887e2 (patch)
treed2fd53dd8e1a34c04fd5493c3d4bdd67c8b38117 /src/mesa/drivers/dri/intel/intel_extensions.c
parent8ec721264c7ae0f73a520362963b2691bf098b9b (diff)
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>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_extensions.c')
-rwxr-xr-xsrc/mesa/drivers/dri/intel/intel_extensions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 953b98389c3..844125dc8a5 100755
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -91,6 +91,7 @@ intelInitExtensions(struct gl_context *ctx)
ctx->Extensions.OES_EGL_image = true;
#endif
ctx->Extensions.OES_draw_texture = true;
+ ctx->Extensions.OES_compressed_ETC1_RGB8_texture = true;
if (intel->gen >= 6)
ctx->Const.GLSLVersion = 130;