<div dir="ltr">On 30 September 2013 15:38, Nicholas Mack <span dir="ltr"><<a href="mailto:nichmack@gmail.com" target="_blank">nichmack@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">v2: Add comment<br></blockquote><div><br></div><div>I sent a comment on patch 1.  Patches 2-4 are:<br><br></div><div>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
---<br>
 .../compiler/layout-max-verts-limited.geom         | 23 ++++++++++++++++++++++<br>
 1 file changed, 23 insertions(+)<br>
 create mode 100644 tests/spec/glsl-1.50/compiler/layout-max-verts-limited.geom<br>
<br>
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<br>
new file mode 100644<br>
index 0000000..9b763a7<br>
--- /dev/null<br>
+++ b/tests/spec/glsl-1.50/compiler/layout-max-verts-limited.geom<br>
@@ -0,0 +1,23 @@<br>
+// [config]<br>
+// expect_result: fail<br>
+// glsl_version: 1.50<br>
+// check_link: true<br>
+// [end config]<br>
+//<br>
+// Section 4.3.8 (Output Layout Qualifiers) of the GLSL 1.50 spec says:<br>
+// "It is an error for the maximum number of vertices to be greater than<br>
+//  gl_MaxGeometryOutputVertices."<br>
+//<br>
+// Unfortunately, we can't easlily try to set max_vertices to<br>
+// gl_MaxGeometryOutputVertices+1, since "max_vertices=" must be<br>
+// followed by an integer-constant (not a constant expression), so as<br>
+// a stop gap, we just verify that setting max_vertices = INT_MAX<br>
+// leads to an error.<br>
+<br>
+#version 150<br>
+<br>
+layout(max_vertices = 2147483647) out;<br>
+<br>
+void main()<br>
+{<br>
+}<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.3.1<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div></div>