On 19 September 2011 10:59, Ian Romanick <span dir="ltr">&lt;<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="im"><br>
On 09/15/2011 04:40 PM, Paul Berry wrote:<br>
&gt; This patch fixes a bug in ir_hirearchical_visitor: when traversing<br>
&gt; an exec_list representing the formal or actual parameters of a<br>
&gt; function, it modified base_ir to point to each parameter in turn,<br>
&gt; rather than leaving it as a pointer to the enclosing statement.<br>
&gt; This was a problem, since base_ir is used by visitor classes to<br>
&gt; locate the statement containing the node being visited (usually so<br>
&gt; that additional statements can be inserted before or after it).<br>
&gt; Without this fix, visitors might attempt to insert statements into<br>
&gt; parameter lists.<br>
<br>
</div>This sure sounds like a bug, but I&#39;m really surprised that this hasn&#39;t<br>
cause catastrophic failures before.  Do you have a shader in mind that<br>
fails due to this issue?<br></blockquote><div><br>No, but if this bug isn&#39;t fixed, then the patch that follows in this patch series (&quot;glsl: Implement a lowering pass for gl_ClipDistance.&quot;) fails pretty catastrophically.<br>
</div></div>