nir: Fix typo in "ushr by 0" algebraic replacement
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Apr 2015 15:40:22 +0000 (08:40 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Apr 2015 23:41:04 +0000 (16:41 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Cc: "10.5" <mesa-stable@lists.freedestkop.org>
src/glsl/nir/nir_opt_algebraic.py

index 319732dfca7ae3cf66ac1cdd10650b25c85b1dbe..cdb19241c43634cd5e071a3829363d81f27d4dbc 100644 (file)
@@ -133,7 +133,7 @@ optimizations = [
    (('ishr', 0, a), 0),
    (('ishr', a, 0), a),
    (('ushr', 0, a), 0),
-   (('ushr', a, 0), 0),
+   (('ushr', a, 0), a),
    # Exponential/logarithmic identities
    (('fexp2', ('flog2', a)), a), # 2^lg2(a) = a
    (('fexp',  ('flog',  a)), a), # e^ln(a)  = a