<div dir="ltr"><div><div>Thanks! Will do in the future.<br><br></div>Regards,<br></div>Lars<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 1:08 PM, Eduardo Lima Mitev <span dir="ltr"><<a href="mailto:elima@igalia.com" target="_blank">elima@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Lars,<br>
<br>
I suppose you need help pushing your patch upstream. I will do it.<br>
<br>
As a note for the future, once you get a formal Review-by to a patch, it is not necessary to send a new version only to add the tag. You can instead ask directly someone with committing rights to merge it for you.<br>
<br>
cheers,<br>
Eduardo<div><div class="h5"><br>
<br>
On 03/23/2016 03:14 PM, Lars Hamre wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
v3: Added reviewed-by tag<br>
v2: Fixed regression pointed out by Eduardo Lima Mitev<br>
<br>
Allow the sequence operator to be a constant expression in GLSL ES versions prior<br>
to GLSL ES 3.0<br>
<br>
Fixes the following piglit test:<br>
        /all/spec/glsl-es-1.0/compiler/array-sized-by-sequence-in-parenthesis.vert<br>
<br>
This is similar to the logic from process_initializer() which performs the<br>
same check for constant variable initialization with sequence operators.<br>
<br>
Signed-off-by: Lars Hamre <<a href="mailto:chemecse@gmail.com" target="_blank">chemecse@gmail.com</a>><br>
Reviewed-by: Eduardo Lima Mitev <<a href="mailto:elima@igalia.com" target="_blank">elima@igalia.com</a>><br>
<br>
---<br>
  src/compiler/glsl/ast_to_hir.cpp | 4 +++-<br>
  1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp<br>
index 5262bd8..35def8e 100644<br>
--- a/src/compiler/glsl/ast_to_hir.cpp<br>
+++ b/src/compiler/glsl/ast_to_hir.cpp<br>
@@ -2125,7 +2125,9 @@ process_array_size(exec_node *node,<br>
     }<br>
<br>
     ir_constant *const size = ir->constant_expression_value();<br>
-   if (size == NULL || array_size->has_sequence_subexpression()) {<br>
+   if (size == NULL ||<br>
+       (state->is_version(120, 300) &&<br>
+        array_size->has_sequence_subexpression())) {<br>
        _mesa_glsl_error(& loc, state, "array size must be a "<br>
                         "constant valued expression");<br>
        return 0;<br>
--<br>
2.5.0<br>
<br></div></div>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>