[Piglit] [PATCH] tests/spec/glsl-1.20: added #version 120 to tests

Lars Hamre chemecse at gmail.com
Thu Mar 24 19:13:01 UTC 2016


From: Lars <chemecse at gmail.com>

Adds the #version directive to glsl 1.20 tests so they don't
default to being glsl 1.10.

NOTE: this is my first time contributing to piglit, so someone will
      need to commit these changes after the review process.

Signed-off-by: Lars Hamre <chemecse at gmail.com>

---
 .../glsl-1.20/compiler/literals/valid-float-exponent-with-suffix.vert   | 2 ++
 .../spec/glsl-1.20/compiler/literals/valid-float-suffix-capital-f.vert  | 2 ++
 tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert        | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/tests/spec/glsl-1.20/compiler/literals/valid-float-exponent-with-suffix.vert b/tests/spec/glsl-1.20/compiler/literals/valid-float-exponent-with-suffix.vert
index d303036..577f739 100644
--- a/tests/spec/glsl-1.20/compiler/literals/valid-float-exponent-with-suffix.vert
+++ b/tests/spec/glsl-1.20/compiler/literals/valid-float-exponent-with-suffix.vert
@@ -3,6 +3,8 @@
 // glsl_version: 1.20
 // [end config]

+#version 120
+
 void main() {
 	vec4 f = vec4(1e5f, -1e5f, 1e-5f, -1e-5f);
 	vec4 g = vec4(1e5F, -1e5F, 1e-5F, -1e-5F);
diff --git a/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-capital-f.vert b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-capital-f.vert
index 1173e3e..594a73d 100644
--- a/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-capital-f.vert
+++ b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-capital-f.vert
@@ -3,6 +3,8 @@
 // glsl_version: 1.20
 // [end config]

+#version 120
+
 void main() {
 	float f = 1.0F;
 	gl_Position = vec4(1.0);
diff --git a/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
index 8c910b2..ed518a4 100644
--- a/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
+++ b/tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-f.vert
@@ -3,6 +3,8 @@
 // glsl_version: 1.20
 // [end config]

+#version 120
+
 void main() {
 	float f = 1.0f;
 	gl_Position = vec4(1.0);
--
2.5.5



More information about the Piglit mailing list