---
.../fs-disallows-redeclaration-of-pervertex-in.frag | 18 ++++++++++++++++++
.../fs-disallows-redeclaration-of-pervertex-out.frag | 19 +++++++++++++++++++
.../vs-disallows-redeclaration-of-pervertex-in.vert | 18 ++++++++++++++++++
3 files changed, 55 insertions(+)
create mode 100644
tests/spec/glsl-1.50/compiler/fs-disallows-redeclaration-of-pervertex-in.frag
create mode 100644
tests/spec/glsl-1.50/compiler/fs-disallows-redeclaration-of-pervertex-out.frag
create mode 100644
tests/spec/glsl-1.50/compiler/vs-disallows-redeclaration-of-pervertex-in.vert
diff --git
a/tests/spec/glsl-1.50/compiler/fs-disallows-redeclaration-of-pervertex-in.frag
b/tests/spec/glsl-1.50/compiler/fs-disallows-redeclaration-of-pervertex-in.frag
new file mode 100644
index 0000000..7ca01af
--- /dev/null
+++
b/tests/spec/glsl-1.50/compiler/fs-disallows-redeclaration-of-pervertex-in.frag
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: false
+// [end config]
+//
+// The gl_PerVertex input interface block only exists in geometry
+// shaders. Check that it may not be redeclared in fragment shaders.
+
+#version 150
+
+in gl_PerVertex {
+ vec4 gl_Position;
+} gl_in[];
+
+void main()
+{
+}
diff --git
a/tests/spec/glsl-1.50/compiler/fs-disallows-redeclaration-of-pervertex-out.frag
b/tests/spec/glsl-1.50/compiler/fs-disallows-redeclaration-of-pervertex-out.frag
new file mode 100644
index 0000000..4e6e035
--- /dev/null
+++
b/tests/spec/glsl-1.50/compiler/fs-disallows-redeclaration-of-pervertex-out.frag
@@ -0,0 +1,19 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: false
+// [end config]
+//
+// The gl_PerVertex output interface block only exists in vertex and
+// geometry shaders. Check that it may not be redeclared in fragment
+// shaders.
+
+#version 150
+
+out gl_PerVertex {
+ vec4 gl_Position;
+};
+
+void main()
+{
+}
diff --git
a/tests/spec/glsl-1.50/compiler/vs-disallows-redeclaration-of-pervertex-in.vert
b/tests/spec/glsl-1.50/compiler/vs-disallows-redeclaration-of-pervertex-in.vert
new file mode 100644
index 0000000..eb56198
--- /dev/null
+++
b/tests/spec/glsl-1.50/compiler/vs-disallows-redeclaration-of-pervertex-in.vert
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: false
+// [end config]
+//
+// The gl_PerVertex input interface block only exists in geometry
+// shaders. Check that it may not be redeclared in vertex shaders.
+
+#version 150
+
+in gl_PerVertex {
+ vec4 gl_Position;
+} gl_in[];
+
+void main()
+{
+}
--
1.8.4
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit