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

Eric Anholt eric at anholt.net
Mon Jan 9 08:36:19 PST 2012


On Sun,  8 Jan 2012 22:44:17 -0500, Matt Turner <mattst88 at gmail.com> wrote:
> GLSL spec boneheadedly says (a ^^ a) must actually be evaluated.

What it's trying to say there is that any side-effects of both LHS and
RHS will occur (as opposed to how && or || work), not that you actually
compute the expression that you could just avoid.  Any side effects will
already be taken care of before opt_algebraic gets a look at the
ir_expression.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120109/566ba4ca/attachment.pgp>


More information about the mesa-dev mailing list