<p dir="ltr"><br>
On Feb 28, 2015 8:39 PM, "Jason Ekstrand" <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
><br>
> Both patches are<br>
><br>
> Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>></p>
<p dir="ltr">Could you commit them?<br>
I don't have commit access.</p>
<p dir="ltr">Regards,<br>
Thomas</p>
<p dir="ltr">><br>
> On Sat, Feb 28, 2015 at 11:32 AM, Thomas Helland <<a href="mailto:thomashelland90@gmail.com">thomashelland90@gmail.com</a>> wrote:<br>
>><br>
>> Shader-db i965 instructions:<br>
>> total instructions in shared programs: 1711180 -> 1711159 (-0.00%)<br>
>> instructions in affected programs:     825 -> 804 (-2.55%)<br>
>> helped:                                9<br>
>> HURT:                                  0<br>
>> GAINED:                                3<br>
>> LOST:                                  3<br>
>><br>
>> Shader-db NIR instructions:<br>
>> total instructions in shared programs: 606187 -> 606179 (-0.00%)<br>
>> instructions in affected programs:     298 -> 290 (-2.68%)<br>
>> helped:                                4<br>
>> HURT:                                  0<br>
>> GAINED:                                0<br>
>> LOST:                                  0<br>
>><br>
>> Signed-off-by: Thomas Helland <<a href="mailto:thomashelland90@gmail.com">thomashelland90@gmail.com</a>><br>
>> ---<br>
>>  src/glsl/nir/nir_opt_algebraic.py | 2 ++<br>
>>  1 file changed, 2 insertions(+)<br>
>><br>
>> diff --git a/src/glsl/nir/nir_opt_algebraic.py b/src/glsl/nir/nir_opt_algebraic.py<br>
>> index 688ceff..ef855aa 100644<br>
>> --- a/src/glsl/nir/nir_opt_algebraic.py<br>
>> +++ b/src/glsl/nir/nir_opt_algebraic.py<br>
>> @@ -58,6 +58,8 @@ optimizations = [<br>
>>     (('iadd', a, 0), a),<br>
>>     (('fadd', ('fmul', a, b), ('fmul', a, c)), ('fmul', a, ('fadd', b, c))),<br>
>>     (('iadd', ('imul', a, b), ('imul', a, c)), ('imul', a, ('iadd', b, c))),<br>
>> +   (('fadd', ('fneg', a), a), 0.0),<br>
>> +   (('iadd', ('ineg', a), a), 0),<br>
>>     (('fmul', a, 0.0), 0.0),<br>
>>     (('imul', a, 0), 0),<br>
>>     (('fmul', a, 1.0), a),<br>
>> --<br>
>> 2.2.1<br>
>><br>
>> _______________________________________________<br>
>> mesa-dev mailing list<br>
>> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
>> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
><br>
><br>
</p>