<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 3, 2018 at 9:16 PM, Timothy Arceri <span dir="ltr"><<a href="mailto:tarceri@itsqueeze.com" target="_blank">tarceri@itsqueeze.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
On 27/03/18 10:32, Marek Olšák wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Nicolai Hähnle <<a href="mailto:nicolai.haehnle@amd.com" target="_blank">nicolai.haehnle@amd.com</a>><br>
<br>
This currently hits a bug in Mesa's GLSL-to-TGSI conversion.<br>
---<br>
  .../tcs-tes-array-in-struct.sh<wbr>ader_test            | 78 ++++++++++++++++++++++<br>
  1 file changed, 78 insertions(+)<br>
  create mode 100644 tests/spec/arb_tessellation_sh<wbr>ader/execution/variable-indexi<wbr>ng/tcs-tes-array-in-struct.<wbr>shader_test<br>
<br>
diff --git a/tests/spec/arb_tessellation_<wbr>shader/execution/variable-inde<wbr>xing/tcs-tes-array-in-struct.<wbr>shader_test b/tests/spec/arb_tessellation_<wbr>shader/execution/variable-inde<wbr>xing/tcs-tes-array-in-struct.<wbr>shader_test<br>
new file mode 100644<br>
index 000000000..8611bdfa7<br>
--- /dev/null<br>
+++ b/tests/spec/arb_tessellation_<wbr>shader/execution/variable-inde<wbr>xing/tcs-tes-array-in-struct.<wbr>shader_test<br>
@@ -0,0 +1,78 @@<br>
+[require]<br>
+GLSL >= 1.50<br>
+GL_ARB_tessellation_shader<br>
+<br>
+[vertex shader passthrough]<br>
+<br>
+[tessellation control shader]<br>
+#version 150<br>
+#extension GL_ARB_tessellation_shader : require<br>
+<br>
+layout(vertices = 4) out;<br>
+<br>
+struct S {<br>
+    int v[2];<br>
+};<br>
+<br>
+out S tcs_tes_s[];<br>
+<br>
+void main()<br>
+{<br>
+    for (int i = 0; i < 2; ++i)<br>
+       tcs_tes_s[gl_InvocationID].v[<wbr>i] = gl_InvocationID * 2 + i;<br>
+<br>
+//    gl_out[gl_InvocationID].gl_Pos<wbr>ition = gl_in[gl_InvocationID].gl_Posi<wbr>tion;<br>
</blockquote>
<br></div></div>
remove ???</blockquote><div><br></div><div>Yes. That can be removed.<br><br></div><div>Marek<br></div></div><br></div></div>