<div dir="ltr">On 12 August 2013 14:30, Paul Berry <span dir="ltr"><<a href="mailto:stereotype441@gmail.com" target="_blank">stereotype441@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"><div dir="ltr"><div class="im">On 9 August 2013 11:59, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 08/05/2013 08:51 AM, Paul Berry wrote:<br>

<div><div>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
diff --git a/tests/spec/glsl-1.50/execution/gs-input-sizing-layout-consistent-with-static-usage.shader_test b/tests/spec/glsl-1.50/execution/gs-input-sizing-layout-consistent-with-static-usage.shader_test<br>
new file mode 100644<br>
index 0000000..96d1f7f<br>
--- /dev/null<br>
+++ b/tests/spec/glsl-1.50/execution/gs-input-sizing-layout-consistent-with-static-usage.shader_test<br>
@@ -0,0 +1,82 @@<br>
+# Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec says:<br>
+#<br>
+# It is a link-time error if not all provided sizes (sized input<br>
+# arrays and layout size) match across all geometry shaders in the<br>
+# program.<br>
+#<br>
+# This test exercises the case where one compilation unit provides a<br>
+# size via a layout declaration, and another provides a size<br>
+# implicitly by accessing a member of an input array using a constant<br>
+# that is consistent with the size provided in the layout declaration.<br>
</blockquote>
<br></div></div></blockquote><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is a clever test. :)  How do other implementations fare?</blockquote><div><br></div></div><div>I don't recall.  I'll check my NVIDIA system and let you know.<br></div></div></div></div></blockquote><div><br>
</div><div>Ironically, although my NVIDIA system only passes 8/31 of these tests, it passes this one :)<br></div></div></div></div>