[Piglit] [PATCH 02/10] gl-3.2/3.3-minmax: fix GL_NUM_COMPRESSED_TEXTURE_FORMATS limit checking

Marek Olšák maraeo at gmail.com
Sat Mar 15 09:53:43 PDT 2014


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

---
 tests/spec/gl-3.2/minmax.c | 4 +++-
 tests/spec/gl-3.3/minmax.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/spec/gl-3.2/minmax.c b/tests/spec/gl-3.2/minmax.c
index e4d135d..448b02e 100644
--- a/tests/spec/gl-3.2/minmax.c
+++ b/tests/spec/gl-3.2/minmax.c
@@ -76,7 +76,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);
 
diff --git a/tests/spec/gl-3.3/minmax.c b/tests/spec/gl-3.3/minmax.c
index 24d6066..072bfec 100644
--- a/tests/spec/gl-3.3/minmax.c
+++ b/tests/spec/gl-3.3/minmax.c
@@ -76,7 +76,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.3.2



More information about the Piglit mailing list