[Piglit] [PATCH 1/5] reduce minimum GL version for GLSL 1.30 to GL2.1

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


Everything in GLSL 1.30 can be usefully supported on a pre-GL3
implementation if we also have EXT_gpu_shader4 to provide the
otherwise GL3+ entrypoints.

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 tests/util/piglit-util-gl-common.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/util/piglit-util-gl-common.c b/tests/util/piglit-util-gl-common.c
index 82ae820..29538bd 100644
--- a/tests/util/piglit-util-gl-common.c
+++ b/tests/util/piglit-util-gl-common.c
@@ -571,7 +571,11 @@ required_gl_version_from_glsl_version(unsigned glsl_version)
 	switch (glsl_version) {
 	case 110: return 20;
 	case 120: return 21;
-	case 130: return 30;
+	/* GLSL 1.30 is naturally matched with GL3,
+	 * but is usefully supportable on GL2.1 if
+	 * EXT_gpu_shader4 is also supported.
+	 */
+	case 130: return 21;
 	case 140: return 31;
 	case 150: return 32;
 	case 330: return 33;
-- 
1.8.3.2



More information about the Piglit mailing list