[Piglit] [PATCH 2/4] GS: Test geometry input layout qualifier rules
Nicholas Mack
nichmack at gmail.com
Mon Sep 16 09:35:43 PDT 2013
---
.../compiler/layout-in-only-input-qualifier.geom | 23 +++++++++++++++++++++
.../compiler/layout-in-only-one-qualifier-id.geom | 24 ++++++++++++++++++++++
2 files changed, 47 insertions(+)
create mode 100644 tests/spec/glsl-1.50/compiler/layout-in-only-input-qualifier.geom
create mode 100644 tests/spec/glsl-1.50/compiler/layout-in-only-one-qualifier-id.geom
diff --git a/tests/spec/glsl-1.50/compiler/layout-in-only-input-qualifier.geom b/tests/spec/glsl-1.50/compiler/layout-in-only-input-qualifier.geom
new file mode 100644
index 0000000..74902bc
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/layout-in-only-input-qualifier.geom
@@ -0,0 +1,23 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+//
+// Section 4.3.8.1(Input Layout Qualifiers) of the GLSL 1.50 spec says:
+// "Geometry shaders allow input layout qualifiers only on the interface
+// qualifier in, not on an input block, block member, or variable. The layout
+// qualifier identifiers for geometry shader inputs are
+// points
+// lines
+// lines_adjacency
+// triangles
+// triangles_adjacency"
+
+#version 150
+
+layout(line_strip) in;
+
+void main()
+{
+}
diff --git a/tests/spec/glsl-1.50/compiler/layout-in-only-one-qualifier-id.geom b/tests/spec/glsl-1.50/compiler/layout-in-only-one-qualifier-id.geom
new file mode 100644
index 0000000..4edd840
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/layout-in-only-one-qualifier-id.geom
@@ -0,0 +1,24 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+//
+// Section 4.3.8.1(Input Layout Qualifiers) of the GLSL 1.50 spec says:
+// "Geometry shaders allow input layout qualifiers only on the interface
+// qualifier in, not on an input block, block member, or variable. The layout
+// qualifier identifiers for geometry shader inputs are
+// points
+// lines
+// lines_adjacency
+// triangles
+// triangles_adjacency
+// Only one argument is accepted."
+
+#version 150
+
+layout(points, triangles_adjacency) in;
+
+void main()
+{
+}
--
1.8.3.1
More information about the Piglit
mailing list