[Piglit] [PATCH 1/2] shader_runner: Allow compute shaders in OpenGLES 3.1

Jordan Justen jordan.l.justen at intel.com
Thu Nov 5 10:44:42 PST 2015


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 tests/shaders/shader_runner.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index a967e52..17a3e3a 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -365,7 +365,12 @@ compile_glsl(GLenum target)
 			piglit_require_extension("GL_ARB_geometry_shader4");
 		break;
 	case GL_COMPUTE_SHADER:
-		if (gl_version.num < 43)
+		if (gl_version.es) {
+			if (gl_version.num < 31) {
+				printf("OpenGLES 3.1 is required for compute shader support\n");
+				piglit_report_result(PIGLIT_SKIP);
+			}
+		} else if (gl_version.num < 43)
 			piglit_require_extension("GL_ARB_compute_shader");
 		break;
 	}
-- 
2.6.2



More information about the Piglit mailing list