Mesa (master): rgtc: Detect RGTC formats as color formats and as compressed formats
Ian Romanick
idr at kemper.freedesktop.org
Sat Oct 2 00:01:22 UTC 2010
Module: Mesa
Branch: master
Commit: 1ca6cbec1b1168b55fecb264d4e75a26de2cccaf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ca6cbec1b1168b55fecb264d4e75a26de2cccaf
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Fri Oct 1 16:40:14 2010 -0700
rgtc: Detect RGTC formats as color formats and as compressed formats
---
src/mesa/main/image.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 3951b6a..ce10b3b 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -695,6 +695,10 @@ _mesa_is_color_format(GLenum format)
case GL_COMPRESSED_SLUMINANCE_EXT:
case GL_COMPRESSED_SLUMINANCE_ALPHA_EXT:
#endif /* FEATURE_EXT_texture_sRGB */
+ case GL_COMPRESSED_RED_RGTC1:
+ case GL_COMPRESSED_SIGNED_RED_RGTC1:
+ case GL_COMPRESSED_RG_RGTC2:
+ case GL_COMPRESSED_SIGNED_RG_RGTC2:
return GL_TRUE;
/* signed texture formats */
case GL_RGBA_SNORM:
@@ -887,6 +891,11 @@ _mesa_is_compressed_format(GLcontext *ctx, GLenum format)
case GL_COMPRESSED_RGB_FXT1_3DFX:
case GL_COMPRESSED_RGBA_FXT1_3DFX:
return ctx->Extensions.TDFX_texture_compression_FXT1;
+ case GL_COMPRESSED_RED_RGTC1:
+ case GL_COMPRESSED_SIGNED_RED_RGTC1:
+ case GL_COMPRESSED_RG_RGTC2:
+ case GL_COMPRESSED_SIGNED_RG_RGTC2:
+ return ctx->Extensions.ARB_texture_compression_rgtc;
default:
return GL_FALSE;
}
More information about the mesa-commit
mailing list