[Piglit] [PATCH 2/4] GS: Test geometry input layout qualifier rules
Nicholas Mack
nichmack at gmail.com
Mon Sep 30 15:38:51 PDT 2013
v2: Remove unnecessary test
---
.../compiler/layout-in-only-one-qualifier-id.geom | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
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-one-qualifier-id.geom b/tests/spec/glsl-1.50/compiler/layout-in-only-one-qualifier-id.geom
new file mode 100644
index 0000000..937c342
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/layout-in-only-one-qualifier-id.geom
@@ -0,0 +1,25 @@
+// [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;
+layout(points, max_vertices = 1) out;
+
+void main()
+{
+}
--
1.8.3.1
More information about the Piglit
mailing list