[Piglit] [PATCH 3/5] isinf/isnan: Relax GL version requirement

Chris Forbes chrisf at ijw.co.nz
Mon Jul 15 03:15:39 PDT 2013


This test can work with 2.1 + GLSL 1.30 + EXT_gpu_shader4.

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 tests/spec/glsl-1.30/execution/isinf-and-isnan.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/spec/glsl-1.30/execution/isinf-and-isnan.c b/tests/spec/glsl-1.30/execution/isinf-and-isnan.c
index 081aa99..ca9abef 100644
--- a/tests/spec/glsl-1.30/execution/isinf-and-isnan.c
+++ b/tests/spec/glsl-1.30/execution/isinf-and-isnan.c
@@ -299,7 +299,12 @@ piglit_init(int argc, char **argv)
 
 	piglit_require_GLSL();
 	piglit_require_GLSL_version(130);
-	piglit_require_gl_version(30);
+
+	if (piglit_is_extension_supported("GL_EXT_gpu_shader4")) {
+		piglit_require_gl_version(21);
+	} else {
+		piglit_require_gl_version(30);
+	}
 
 	if (use_fbo) {
 		setup_fbo();
-- 
1.8.3.2



More information about the Piglit mailing list