<div dir="ltr">On 17 February 2013 10:31, Jordan Justen <span dir="ltr"><<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>><br>
---<br>
.../execution/interface-blocks-with-gs.shader_test | 57 ++++++++++++++++++++<br>
1 file changed, 57 insertions(+)<br>
create mode 100644 tests/spec/glsl-1.50/execution/interface-blocks-with-gs.shader_test<br>
<br>
diff --git a/tests/spec/glsl-1.50/execution/interface-blocks-with-gs.shader_test b/tests/spec/glsl-1.50/execution/interface-blocks-with-gs.shader_test<br>
new file mode 100644<br>
index 0000000..c620f46<br>
--- /dev/null<br>
+++ b/tests/spec/glsl-1.50/execution/interface-blocks-with-gs.shader_test<br>
@@ -0,0 +1,57 @@<br>
+[require]<br>
+GL >= 3.1<br></blockquote><div><br></div><div>I think this should be "GL >= 3.2".<br><br></div><div>With that fixed, this is:<br><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com" target="_blank">stereotype441@gmail.com</a>><br>
<br>I also sent out comments on patches 1 and 3.<br><br></div><div>One final note: a lot of these tests specifically validate a sentence or two from the GLSL spec, which is great. Generally for tests like these, I prefer to see the relevant text from the spec quoted as a comment in the test. This reduces the risk of someone coming along later and disabling the test because their implementation fails it and they think the test is wrong (this has happened in the past). It doesn't have to be much--see for instance tests/spec/glsl-1.50/compiler/no-statement-before-first-case.vert. This would be particularly valuable for patches 6 and 7, since as you point out, the nVidia binary driver fails some of these tests.<br>
<br></div><div>No need to go overboard of course--for example IMHO this patch is fine as is, since it doesn't test a specific line item from the spec, it just tests basic functionality of interface blocks.<br>
</div><div><br>In any case, the remainder of the series is:<br><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com" target="_blank">stereotype441@gmail.com</a>><br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+GLSL >= 1.50<br>
+<br>
+[vertex shader]<br>
+#version 150<br>
+<br>
+in vec4 vertex;<br>
+<br>
+out block {<br>
+ vec4 vertex_to_gs;<br>
+};<br>
+<br>
+void main()<br>
+{<br>
+ vertex_to_gs = vertex;<br>
+}<br>
+<br>
+[geometry shader]<br>
+#version 150<br>
+<br>
+layout(triangles) in;<br>
+layout(triangle_strip, max_vertices = 3) out;<br>
+<br>
+in block {<br>
+ vec4 vertex_to_gs;<br>
+} inst[];<br>
+<br>
+void main()<br>
+{<br>
+ for (int i = 0; i < 3; i++) {<br>
+ gl_Position = inst[i].vertex_to_gs;<br>
+ EmitVertex();<br>
+ }<br>
+}<br>
+<br>
+[fragment shader]<br>
+#version 150<br>
+<br>
+out vec4 color;<br>
+<br>
+void main()<br>
+{<br>
+ color = vec4(0.0, 1.0, 0.0, 1.0);<br>
+}<br>
+<br>
+[vertex data]<br>
+vertex/float/2<br>
+-1.0 -1.0<br>
+-1.0 1.0<br>
+ 1.0 1.0<br>
+ 1.0 -1.0<br>
+<br>
+[test]<br>
+draw arrays GL_TRIANGLE_FAN 0 4<br>
+probe all rgba 0.0 1.0 0.0 1.0<br>
+<br>
<span><font color="#888888">--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org" target="_blank">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>