From 291b4ec3d4274ddc525811193ab38091fe9653d6 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Fri, 28 Sep 2012 06:25:39 -0700 Subject: util: Add fields to piglit_gl_test_config for listing supported GL flavors (v2) This patch has 3 interrelated components. 1) Add the following fields to piglit_gl_test_config: supports_gl_core_version supports_gl_compat_version supports_gl_es1 supports_gl_es2 These allow a test to specify what GL flavors under which it can run. For details, see the documentation for struct piglit_gl_test_config. 2. In tests/util/piglit-framework-gl, implement support for the new fields. 3. In each GL test source, add one of the new fields to the PIGLIT_GL_TEST_CONFIG_BEGIN/END block. For GLES1 tests, add `supports_gl_es1 = true`. For GLES2 tests, add `supports_gl_es2 = true`. For desktop GL tests, add `supports_gl_compat_version = 10`. For an explanation of why version 1.0 is used for desktop GL tests, see the documentation for supports_gl_compat_version. No tests yet require a GL core context. v2: Replace silly sum of booleans with a logical conjuction. For Anholt. Reviewed-and-tested-by: Jordan Justen Tested-by: Paul Berry Acked-by: Eric Anholt Signed-off-by: Chad Versace --- tests/fbo/fbo-nodepth-test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/fbo/fbo-nodepth-test.c') diff --git a/tests/fbo/fbo-nodepth-test.c b/tests/fbo/fbo-nodepth-test.c index 3c3d3234..6c92132a 100644 --- a/tests/fbo/fbo-nodepth-test.c +++ b/tests/fbo/fbo-nodepth-test.c @@ -35,6 +35,8 @@ PIGLIT_GL_TEST_CONFIG_BEGIN + config.supports_gl_compat_version = 10; + config.window_width = 128; config.window_height = 128; config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; -- cgit v1.2.3