Hi,<div><br></div><div>Something that hit me in GLSL Optimizer (which is based on Mesa's GLSL). Cloning ir_loop just sets "counter" to the old counter. So in situations like:</div><div><br></div><div>1) loop controls are set,</div>
<div>2) and after that inlining happens, cloning the instructions including original variable</div><div><br></div><div>It ends up in a situation where function body has one ir_variable object, but a loop counter there points to another ir_variable (before it was cloned).</div>
<div><br></div><div>Not sure how/if that's relevant to Mesa though -- it might. I've fixed it in my tree with this: <a href="https://github.com/aras-p/glsl-optimizer/commit/c2919f69#diff-0">https://github.com/aras-p/glsl-optimizer/commit/c2919f69#diff-0</a></div>
<div><br clear="all"><div><br></div>-- <br>Aras Pranckevičius<br>work: <a href="http://unity3d.com">http://unity3d.com</a><br>home: <a href="http://aras-p.info">http://aras-p.info</a><br>
</div><div><br></div>