You'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)
Thanks. All Nicolai's compiler work in his repo is now merged to master. -Marek On Tue, May 18, 2010 at 9:03 AM, Tom Stellard <tstel...@gmail.com> wrote: > Attached is a patch to fix constant folding in the r300 compiler > implemented in commit c704933 of Nicolai's r300g-glsl branch > (git://anongit.freedesktop.org/~nh/mesa<http://anongit.freedesktop.org/%7Enh/mesa> > ). > > With this patch, the constant folding implementation can be cherry-picked > to master without breaking any piglit tests. > > -Tom > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > >
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev