summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_context.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-04-18 14:28:14 -0700
committerEric Anholt <eric@anholt.net>2011-04-23 13:14:56 -0700
commit4093fdce6d7b8370bfe3ff5119dc0ef0acb32054 (patch)
tree040ff84b339a098813d3e4c4da6c25fddf65093b /src/mesa/drivers/dri/intel/intel_context.c
parent7d1a2056a84b5af75adf84e34a57e5d75f550139 (diff)
downloadexternal_mesa3d-4093fdce6d7b8370bfe3ff5119dc0ef0acb32054.zip
external_mesa3d-4093fdce6d7b8370bfe3ff5119dc0ef0acb32054.tar.gz
external_mesa3d-4093fdce6d7b8370bfe3ff5119dc0ef0acb32054.tar.bz2
i965: Add support for ARB_texture_compression_rgtc.
Tested with rgtc-teximage-0[12]. EXT_texture_compression_rgtc/fbo-generatemipmap-formats fails in NPOT just like S3TC does. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_context.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 02e7f77..ec08dd5 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -718,6 +718,12 @@ intelInitContext(struct intel_context *intel,
ctx->TextureFormatSupported[MESA_FORMAT_RGBA_DXT5] = GL_TRUE;
#ifndef I915
+ /* GL_ARB_texture_compression_rgtc */
+ ctx->TextureFormatSupported[MESA_FORMAT_RED_RGTC1] = GL_TRUE;
+ ctx->TextureFormatSupported[MESA_FORMAT_SIGNED_RED_RGTC1] = GL_TRUE;
+ ctx->TextureFormatSupported[MESA_FORMAT_RG_RGTC2] = GL_TRUE;
+ ctx->TextureFormatSupported[MESA_FORMAT_SIGNED_RG_RGTC2] = GL_TRUE;
+
/* GL_ARB_texture_rg */
ctx->TextureFormatSupported[MESA_FORMAT_R8] = GL_TRUE;
ctx->TextureFormatSupported[MESA_FORMAT_R16] = GL_TRUE;