<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 28, 2015 at 7:50 AM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">From: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
<br>
Adds S3TC and PALETTE formats.<br>
<br>
Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
---<br>
src/mesa/main/texcompress.c | 14 ++++++++++++++<br>
1 file changed, 14 insertions(+)<br>
<br>
diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c<br>
index e0294a8..84973d3 100644<br>
--- a/src/mesa/main/texcompress.c<br>
+++ b/src/mesa/main/texcompress.c<br>
@@ -100,6 +100,12 @@ _mesa_gl_compressed_format_base_format(GLenum format)<br>
case GL_ETC1_RGB8_OES:<br>
case GL_COMPRESSED_RGB8_ETC2:<br>
case GL_COMPRESSED_SRGB8_ETC2:<br>
+ case GL_RGB_S3TC:<br>
+ case GL_RGB4_S3TC:<br>
+ case GL_PALETTE4_RGB8_OES:<br>
+ case GL_PALETTE4_R5_G6_B5_OES:<br>
+ case GL_PALETTE8_RGB8_OES:<br>
+ case GL_PALETTE8_R5_G6_B5_OES:<br>
return GL_RGB;<br>
<br>
case GL_COMPRESSED_RGBA:<br>
@@ -117,6 +123,14 @@ _mesa_gl_compressed_format_base_format(GLenum format)<br>
case GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:<br>
case GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:<br>
case GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:<br>
+ case GL_RGBA_S3TC:<br>
+ case GL_RGBA4_S3TC:<br>
+ case GL_PALETTE4_RGBA8_OES:<br>
+ case GL_PALETTE8_RGB5_A1_OES:<br>
+ case GL_PALETTE4_RGBA4_OES:<br>
+ case GL_PALETTE4_RGB5_A1_OES:<br>
+ case GL_PALETTE8_RGBA8_OES:<br>
+ case GL_PALETTE8_RGBA4_OES:<br>
return GL_RGBA;<br>
<br>
case GL_COMPRESSED_ALPHA:<br>
<span class=""><font color="#888888">--<br>
2.5.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br></div></div>