<p dir="ltr">Rb</p>
<div class="gmail_quote">On Jun 25, 2016 9:30 PM, "Eric Anholt" <<a href="mailto:eric@anholt.net">eric@anholt.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The intent was to continue down the indirect chain, not to call ourselves<br>
with unchanged input arguments.  Found by code inspection, and comparison<br>
to copy_prop_alu_src().<br>
<br>
We haven't hit this because callers of NIR's copy prop are doing so in<br>
SSA, before indirect variable dereferences have been lowered to registers.<br>
---<br>
 src/compiler/nir/nir_opt_copy_propagate.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/compiler/nir/nir_opt_copy_propagate.c b/src/compiler/nir/nir_opt_copy_propagate.c<br>
index adca7fa6eff2..c26e07fda712 100644<br>
--- a/src/compiler/nir/nir_opt_copy_propagate.c<br>
+++ b/src/compiler/nir/nir_opt_copy_propagate.c<br>
@@ -103,7 +103,7 @@ copy_prop_src(nir_src *src, nir_instr *parent_instr, nir_if *parent_if)<br>
 {<br>
    if (!src->is_ssa) {<br>
       if (src->reg.indirect)<br>
-         return copy_prop_src(src, parent_instr, parent_if);<br>
+         return copy_prop_src(src->reg.indirect, parent_instr, parent_if);<br>
       return false;<br>
    }<br>
<br>
--<br>
2.8.1<br>
<br>
_______________________________________________<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/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>