[Piglit] [PATCH] arb_vertex_type_2_10_10_10: Don't test BGRA if we don't have the ext.

Eric Anholt eric at anholt.net
Thu Apr 26 17:17:17 UTC 2018


The 2101010 spec says to remove BGRA references if this extension
isn't present, so don't test them.
---
 tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c b/tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c
index 4c7b199fa22c..e08c79bfc1ff 100644
--- a/tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c
+++ b/tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c
@@ -160,6 +160,10 @@ test(int x1, int y1, int x2, int y2, const struct test_info *test)
 	GLuint v[3], c[3];
 	bool pass;
 
+	if (test->size == GL_BGRA &&
+	    !piglit_is_extension_supported("GL_EXT_vertex_array_bgra"))
+		return true;
+
 	printf("testing: %s\n", test->name);
 
 	/* vertex positions */
-- 
2.17.0



More information about the Piglit mailing list