[Mesa-dev] [PATCH] glsl: remove logical xor FINISHME

Matt Turner mattst88 at gmail.com
Sun Jan 8 19:49:15 PST 2012


On Sun, Jan 8, 2012 at 10:44 PM, Matt Turner <mattst88 at gmail.com> wrote:
> GLSL spec boneheadedly says (a ^^ a) must actually be evaluated.
>
> Signed-off-by: Matt Turner <mattst88 at gmail.com>
> ---

On second thought, maybe the better thing to do here is to evaluate $a
twice, which in most cases would be dead-code eliminated, and then
simplify (a ^^ a) to false?


More information about the mesa-dev mailing list