[Piglit] [PATCH] gl-3.1/minmax: require at least 0 in GL_NUM_COMPRESSED_TEXTURE_FORMATS

Marek Olšák maraeo at gmail.com
Fri Nov 1 18:20:23 CET 2013


From: Marek Olšák <marek.olsak at amd.com>

---
 tests/spec/gl-3.1/minmax.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/spec/gl-3.1/minmax.c b/tests/spec/gl-3.1/minmax.c
index 1128939..c965ebe 100644
--- a/tests/spec/gl-3.1/minmax.c
+++ b/tests/spec/gl-3.1/minmax.c
@@ -79,7 +79,9 @@ piglit_init(int argc, char **argv)
 	piglit_test_range_float(GL_POINT_SIZE_RANGE, 1, 1);
 	piglit_test_range_float(GL_ALIASED_LINE_WIDTH_RANGE, 1, 1);
 	piglit_test_range_float(GL_SMOOTH_LINE_WIDTH_RANGE, 1, 1);
-	piglit_test_min_int(GL_NUM_COMPRESSED_TEXTURE_FORMATS, 4);
+	/* The spec lists 4, but the number should be 0, because hw drivers
+	 * don't have to expose any non-core extensions like S3TC. */
+	piglit_test_min_int(GL_NUM_COMPRESSED_TEXTURE_FORMATS, 0);
 	piglit_test_min_int(GL_MAX_TEXTURE_BUFFER_SIZE, 65536);
 	piglit_test_min_int(GL_MAX_RECTANGLE_TEXTURE_SIZE, 1024);
 
-- 
1.8.1.2



More information about the Piglit mailing list