<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 22, 2015 at 9:06 AM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jan 22, 2015 at 7:27 AM, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> On Jan 22, 2015 3:41 AM, "Kenneth Graunke" <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br>
</span><span class="">>> diff --git a/src/glsl/nir/nir_opt_algebraic.py<br>
>> b/src/glsl/nir/nir_opt_algebraic.py<br>
>> index 169bb41..cf16b19 100644<br>
>> --- a/src/glsl/nir/nir_opt_algebraic.py<br>
>> +++ b/src/glsl/nir/nir_opt_algebraic.py<br>
>> @@ -68,6 +68,22 @@ optimizations = [<br>
>>     (('fadd', ('fmul', a, b), c), ('ffma', a, b, c)),<br>
>>     (('fge', ('fneg', ('fabs', a)), 0.0), ('feq', a, 0.0)),<br>
>>     (('fmin', ('fmax', a, 1.0), 0.0), ('fsat', a)),<br>
>> +   # Logical and bit operations<br>
>> +   (('fand', a, a), a),<br>
><br>
> This isn't correct.  The fand operation will normalize to 0.0/1.0.<br>
<br>
</span>I didn't understand why we had integer and float versions of bitwise<br>
operators before, but now I really don't understand what fand/for/fxor<br>
are for. What is their purpose? (Examples please)<br>
</blockquote></div><br></div><div class="gmail_extra">They're for hardware that doesn't do integers.  That's not our hardware, so we can really just ignore them for now.  I don't think our codegen can even handle them.<br></div></div>