diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2015-04-14 08:40:22 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2015-04-14 16:41:04 -0700 |
commit | bc672e261c5f7ff56cd2b8f6b518ebfdc0163bb7 (patch) | |
tree | b0093f5e9c325b5175084d0f4a107614894f1480 /src/glsl/nir | |
parent | 67a8610caff15ba9f55ac5ee2404f19033b5bae6 (diff) | |
download | external_mesa3d-bc672e261c5f7ff56cd2b8f6b518ebfdc0163bb7.zip external_mesa3d-bc672e261c5f7ff56cd2b8f6b518ebfdc0163bb7.tar.gz external_mesa3d-bc672e261c5f7ff56cd2b8f6b518ebfdc0163bb7.tar.bz2 |
nir: Fix typo in "ushr by 0" algebraic replacement
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>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/nir_opt_algebraic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_opt_algebraic.py b/src/glsl/nir/nir_opt_algebraic.py index 319732d..cdb1924 100644 --- a/src/glsl/nir/nir_opt_algebraic.py +++ b/src/glsl/nir/nir_opt_algebraic.py @@ -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 |