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

Bryan Cain bryancain3 at gmail.com
Fri Sep 2 16:32:49 PDT 2011


On 09/02/2011 06:13 PM, Eric Anholt wrote:
> 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.

Can you please change your driver if the hardware is not able to support
it, then?  If that's not possible, we need to come up with a way to
upload booleans as ~0 for Gallium drivers and 1 for i965.

Bryan


More information about the mesa-dev mailing list