[Piglit] [PATCH 4/4] GS: Test that max_vertices cannot be greater than glMaxGeometryOutputVertices

Nicholas Mack nichmack at gmail.com
Mon Sep 16 09:35:45 PDT 2013


---
 .../glsl-1.50/compiler/layout-max-verts-limited.geom    | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/layout-max-verts-limited.geom

diff --git a/tests/spec/glsl-1.50/compiler/layout-max-verts-limited.geom b/tests/spec/glsl-1.50/compiler/layout-max-verts-limited.geom
new file mode 100644
index 0000000..7794d94
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/layout-max-verts-limited.geom
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+//
+// Section 4.3.8 (Output Layout Qualifiers) of the GLSL 1.50 spec says:
+// "It is an error for the maximum number of vertices to be greater than
+//  gl_MaxGeometryOutputVertices."
+
+#version 150
+
+layout(max_vertices = 2147483647) out;
+
+void main()
+{
+}
-- 
1.8.3.1



More information about the Piglit mailing list