aboutsummaryrefslogtreecommitdiff
path: root/tests/spec
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2013-01-07 14:42:48 -0600
committerTom Gall <tom.gall@linaro.org>2013-04-22 11:17:13 -0500
commit93c7d0f7b67677e9b29b2ecdc573912b0ba01af6 (patch)
tree8448c6a438f01103e889040397c9392fadda0296 /tests/spec
parent6a13ba3a54ef8cefb28421739feb189b3d285ff9 (diff)
downloadpiglit-93c7d0f7b67677e9b29b2ecdc573912b0ba01af6.tar.gz
gles2: glslparser tests ported to glsl es 1.00 from glsl 1.10
Diffstat (limited to 'tests/spec')
-rw-r--r--tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag17
-rw-r--r--tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert18
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag
new file mode 100644
index 00000000..e72eb045
--- /dev/null
+++ b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * glsles_version: 1.00
+ * check_link: true
+ * [end config]
+ *
+ * This test verifies that the fragment shader special variable
+ * gl_ClipDistance (defined in GLSL 1.30) is not available when the
+ * GLSL version is 1.20.
+ */
+
+varying float gl_ClipDistance[2];
+
+void main()
+{
+}
diff --git a/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert
new file mode 100644
index 00000000..108f9122
--- /dev/null
+++ b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.vert
@@ -0,0 +1,18 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * glsles_version: 1.00
+ * check_link: true
+ * [end config]
+ *
+ * This test verifies that the vertex shader special variable
+ * gl_ClipDistance (defined in GLSL 1.30) is not available when the
+ * GLSL version is 1.20.
+ */
+
+varying float gl_ClipDistance[2];
+
+void main()
+{
+ gl_Position = vec4(0.0);
+}