[Piglit] [PATCH 03/13] util/piglit-framework-gl: Support OpenGL ES3

Chad Versace chad.versace at linux.intel.com
Tue Nov 27 17:52:01 PST 2012


Allow piglit_gl_test_config::supports_gl_es_version to be >= 30.  Piglit
passes the requested version directly to Waffle.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 tests/util/piglit-framework-gl/piglit_wfl_framework.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
index 9f07f7e..f143670 100644
--- a/tests/util/piglit-framework-gl/piglit_wfl_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
@@ -200,12 +200,9 @@ choose_config(struct piglit_wfl_framework *wfl_fw,
 			int32_t waffle_context_api;
 			assert(test_config->supports_gl_es_version);
 
-			if (test_config->supports_gl_es_version >= 30) {
-				printf("piglit: info: piglit does not yet "
-				       "support OpenGL ES %d.%d\n",
-				       test_config->supports_gl_es_version / 10,
-				       test_config->supports_gl_es_version % 10);
-				piglit_report_result(PIGLIT_SKIP);
+			if (test_config->supports_gl_es_version < 40 &&
+			    test_config->supports_gl_es_version >= 30) {
+				waffle_context_api = WAFFLE_CONTEXT_OPENGL_ES3;
 			} else if (test_config->supports_gl_es_version >= 20) {
 				waffle_context_api = WAFFLE_CONTEXT_OPENGL_ES2;
 			} else if (test_config->supports_gl_es_version >= 10) {
@@ -221,6 +218,10 @@ choose_config(struct piglit_wfl_framework *wfl_fw,
 			i = 0;
 			head_attrib_list[i++] = WAFFLE_CONTEXT_API;
 			head_attrib_list[i++] = waffle_context_api;
+			head_attrib_list[i++] = WAFFLE_CONTEXT_MAJOR_VERSION;
+			head_attrib_list[i++] = test_config->supports_gl_es_version / 10;
+			head_attrib_list[i++] = WAFFLE_CONTEXT_MINOR_VERSION;
+			head_attrib_list[i++] = test_config->supports_gl_es_version % 10;
 			head_attrib_list[i++] = 0;
 			break;
 			}
-- 
1.7.11.7



More information about the Piglit mailing list