You&#39;ve actually fixed a much more important compiler bug than you might think. The 0.5 swizzle is really being used even without constant folding, specifically in reducing the number of shader immediates (r300_tgsi_to_rc.c : handle_immediate)<br>


<br>Thanks.<br><br>All Nicolai&#39;s compiler work in his repo is now merged to master.<br><br>-Marek<br>
<br><div class="gmail_quote">On Tue, May 18, 2010 at 9:03 AM, Tom Stellard <span dir="ltr">&lt;<a href="mailto:tstellar@gmail.com" target="_blank">tstellar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


Attached is a patch to fix constant folding in the r300 compiler<br>
implemented in commit c704933 of Nicolai&#39;s r300g-glsl branch<br>
(git://<a href="http://anongit.freedesktop.org/%7Enh/mesa" target="_blank">anongit.freedesktop.org/~nh/mesa</a>).<br>
<br>
With this patch, the constant folding implementation can be cherry-picked<br>
to master without breaking any piglit tests.<br>
<font color="#888888"><br>
-Tom<br>
</font><br>_______________________________________________<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="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br></blockquote></div><br>