[Piglit] [PATCH 2/3] built-in-constants: Add support for OpenGL ES 3.1
Ian Romanick
idr at freedesktop.org
Wed Apr 29 16:01:51 PDT 2015
From: Ian Romanick <ian.d.romanick at intel.com>
...or GL_ARB_ES3_1_compatibility.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
tests/shaders/built-in-constants.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/shaders/built-in-constants.c b/tests/shaders/built-in-constants.c
index abf6fa8..dc428db 100644
--- a/tests/shaders/built-in-constants.c
+++ b/tests/shaders/built-in-constants.c
@@ -115,6 +115,17 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.supports_gl_es_version = 30;
break;
+ case 310:
+ /* It seems impossible that a desktop OpenGL implementation
+ * would support GL_ARB_ES3_1_compatibility and not support at
+ * least OpenGL 3.2. Realistically, the compute shader
+ * requirement means that nearly all
+ * GL_ARB_ES3_1_compatibility implementations will be OpenGL
+ * 4.2 or later.
+ */
+ config.supports_gl_core_version = 32;
+ config.supports_gl_es_version = 31;
+ break;
default: {
const unsigned int gl_version
= required_gl_version_from_glsl_version(required_glsl_version);
@@ -415,6 +426,10 @@ piglit_init(int argc, char **argv)
if (!piglit_is_extension_supported("GL_ARB_ES3_compatibility"))
piglit_report_result(PIGLIT_SKIP);
break;
+ case 310:
+ if (!piglit_is_extension_supported("GL_ARB_ES3_1_compatibility"))
+ piglit_report_result(PIGLIT_SKIP);
+ break;
default:
printf("Unknown GLSL ES version.\n");
piglit_report_result(PIGLIT_FAIL);
--
2.1.0
More information about the Piglit
mailing list