Mesa (7.11): mesa: Add GL_OES_compressed_paletted_texture formats to _mesa_is_compressed_format

Ian Romanick idr at kemper.freedesktop.org
Tue Oct 25 18:42:05 PDT 2011


Module: Mesa
Branch: 7.11
Commit: 5f776f2a7d77b06853bb10419958c268be162a69
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f776f2a7d77b06853bb10419958c268be162a69

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Mon Sep 12 11:36:53 2011 -0500

mesa: Add GL_OES_compressed_paletted_texture formats to _mesa_is_compressed_format

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Tested-by: Jin Yang <jin.a.yang at intel.com>
(cherry picked from commit a454c835fa4f1d243f9e2072007dd52cf0d71dac)

---

 src/mesa/main/image.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 6d7bc73..e54c7b5 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1081,6 +1081,19 @@ _mesa_is_compressed_format(struct gl_context *ctx, GLenum format)
       return ctx->Extensions.EXT_texture_compression_latc;
    case GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI:
       return ctx->Extensions.ATI_texture_compression_3dc;
+#if FEATURE_ES
+   case GL_PALETTE4_RGB8_OES:
+   case GL_PALETTE4_RGBA8_OES:
+   case GL_PALETTE4_R5_G6_B5_OES:
+   case GL_PALETTE4_RGBA4_OES:
+   case GL_PALETTE4_RGB5_A1_OES:
+   case GL_PALETTE8_RGB8_OES:
+   case GL_PALETTE8_RGBA8_OES:
+   case GL_PALETTE8_R5_G6_B5_OES:
+   case GL_PALETTE8_RGBA4_OES:
+   case GL_PALETTE8_RGB5_A1_OES:
+      return ctx->API == API_OPENGLES;
+#endif
    default:
       return GL_FALSE;
    }



More information about the mesa-commit mailing list