[Mesa-dev] [PATCH v2] glsl_to_tgsi, mesa: fixes for native integers and integer booleans

Eric Anholt eric at anholt.net
Fri Sep 2 16:13:18 PDT 2011

On Wed, 31 Aug 2011 01:33:59 -0500, Bryan Cain <bryancain3 at gmail.com> wrote:
> With this patch, there are no piglit regressions on softpipe with native
> integers enabled.  Unlike my previous patch, this uses integer values of
> ~0 and 0 for true and false, respectively, instead of the float values 1.0
> and 0.0.

This will break b2* conversions on our driver, since we expect true to
be 1, not ~0.  The minimal change would require emit(AND(temp, uniform,
1)) when deferencing boolean components of uniform variables.
-------------- 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/20110902/1441a2b6/attachment.pgp>

More information about the mesa-dev mailing list