<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 16, 2017 at 2:18 PM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 src/compiler/nir/nir.h                   | 2 +-<br>
 src/compiler/nir/nir_lower_<wbr>vars_to_ssa.c | 8 ++++++--<br>
 2 files changed, 7 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h<br>
index 2dedb45..acbe91c 100644<br>
--- a/src/compiler/nir/nir.h<br>
+++ b/src/compiler/nir/nir.h<br>
@@ -2390,7 +2390,7 @@ bool nir_is_per_vertex_io(nir_<wbr>variable *var, gl_shader_stage stage);<br>
 void nir_lower_io_types(nir_shader *shader);<br>
 void nir_lower_regs_to_ssa_impl(<wbr>nir_function_impl *impl);<br>
 void nir_lower_regs_to_ssa(nir_<wbr>shader *shader);<br>
-void nir_lower_vars_to_ssa(nir_<wbr>shader *shader);<br>
+bool nir_lower_vars_to_ssa(nir_<wbr>shader *shader);<br>
<br>
 bool nir_remove_dead_variables(nir_<wbr>shader *shader, nir_variable_mode modes);<br>
 bool nir_lower_constant_<wbr>initializers(nir_shader *shader,<br>
diff --git a/src/compiler/nir/nir_lower_<wbr>vars_to_ssa.c b/src/compiler/nir/nir_lower_<wbr>vars_to_ssa.c<br>
index 37a786c..e5a12eb 100644<br>
--- a/src/compiler/nir/nir_lower_<wbr>vars_to_ssa.c<br>
+++ b/src/compiler/nir/nir_lower_<wbr>vars_to_ssa.c<br>
@@ -737,11 +737,15 @@ nir_lower_vars_to_ssa_impl(<wbr>nir_function_impl *impl)<br>
    return progress;<br>
 }<br>
<br>
-void<br>
+bool<br>
 nir_lower_vars_to_ssa(nir_<wbr>shader *shader)<br>
 {<br>
+   bool progress = false;<br>
+<br>
    nir_foreach_function(function, shader) {<br>
       if (function->impl)<br>
-         nir_lower_vars_to_ssa_impl(<wbr>function->impl);<br>
+         progress |= nir_lower_vars_to_ssa_impl(<wbr>function->impl);<br></blockquote><div><br></div><div>Already had a concept of progress and just didn't wire it up?  Good work me. :(<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    }<br>
+<br>
+   return progress;<br>
 }<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.10.2<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">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/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>