But, isn't -INT_MIN == INT_MIN? Regards, Boyan Ding
2015-08-06 19:36 GMT+08:00 Thomas Helland <thomashellan...@gmail.com>: > The same rationale as in the other patches. > No shader-db changes. > > Signed-off-by: Thomas Helland <thomashellan...@gmail.com> > --- > src/glsl/nir/nir_opt_algebraic.py | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/glsl/nir/nir_opt_algebraic.py > b/src/glsl/nir/nir_opt_algebraic.py > index 3e483fb..d005f81 100644 > --- a/src/glsl/nir/nir_opt_algebraic.py > +++ b/src/glsl/nir/nir_opt_algebraic.py > @@ -115,6 +115,8 @@ optimizations = [ > (('sne', a, b), ('b2f', ('fne', a, b)), 'options->lower_scmp'), > (('fne', ('fneg', a), a), ('fne', a, 0.0)), > (('feq', ('fneg', a), a), ('feq', a, 0.0)), > + (('ine', ('ineg', a), a), ('ine', a, 0)), > + (('ieq', ('ineg', a), a), ('ieq', a, 0)), > # Emulating booleans > (('imul', ('b2i', a), ('b2i', b)), ('b2i', ('iand', a, b))), > (('fmul', ('b2f', a), ('b2f', b)), ('b2f', ('iand', a, b))), > -- > 2.5.0 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev