[Piglit] [PATCH 2/2] util: Include RGTC formats in the list of block formats for rgbw_texture.

Eric Anholt eric at anholt.net
Wed Apr 20 10:13:25 PDT 2011


No tests successfully use rgbw and RGTC yet, since we can't render to
rgtc.  But when we go write some, this should reduce surprises.
---
 tests/util/piglit-util-gl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index 8a92949..be6bacc 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -905,6 +905,10 @@ piglit_rgbw_texture(GLenum format, int w, int h, GLboolean mip,
 				case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
 				case GL_COMPRESSED_RGB_FXT1_3DFX:
 				case GL_COMPRESSED_RGBA_FXT1_3DFX:
+				case GL_COMPRESSED_RED_RGTC1:
+				case GL_COMPRESSED_SIGNED_RED_RGTC1:
+				case GL_COMPRESSED_RG_RGTC2:
+				case GL_COMPRESSED_SIGNED_RG_RGTC2:
 					if (size == 4)
 						color = red;
 					else if (size == 2)
-- 
1.7.4.4



More information about the Piglit mailing list