[Piglit] [PATCH] arb_transform_feedback_overflow_query: skip QBO subtests if unsupported
Kenneth Graunke
kenneth at whitecape.org
Wed Feb 22 00:56:16 UTC 2017
We need GL_ARB_query_buffer_object to run the GL_QUERY_BUFFER subtests.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Cc: Rafael Antognolli <rafael.antognolli at intel.com>
---
tests/spec/arb_transform_feedback_overflow_query/basic.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/spec/arb_transform_feedback_overflow_query/basic.c b/tests/spec/arb_transform_feedback_overflow_query/basic.c
index 25c335578..0ca0afe6a 100644
--- a/tests/spec/arb_transform_feedback_overflow_query/basic.c
+++ b/tests/spec/arb_transform_feedback_overflow_query/basic.c
@@ -244,6 +244,12 @@ run_subtest(int n_streams, int array_sizes[], int stream, GLuint query_type,
const char *gs_text;
const char **gs_varyings;
+ if (!strcmp(test_type, "buffer_object") &&
+ !piglit_is_extension_supported("GL_ARB_query_buffer_object")) {
+ piglit_loge("context does not support "
+ "GL_ARB_query_buffer_object; skipping test");
+ return PIGLIT_SKIP;
+ }
if (n_streams > 1) {
if (!check_multistream_extensions())
--
2.11.1
More information about the Piglit
mailing list