summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_opt_algebraic.py
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-01-30 14:03:14 -0800
committerEric Anholt <[email protected]>2015-02-06 15:57:55 -0800
commitbff4cbdafaca5825f8985c93c3c0646f9c4b7649 (patch)
tree230d22dfca92bfeb0d03518cf761f265e760a6af /src/glsl/nir/nir_opt_algebraic.py
parent6706537dd4d6794f71de4fe105ec99bc84b526e0 (diff)
nir: Fix broken fsat recognizer.
We've probably never seen this ridiculous pattern in the wild, so it didn't matter. Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_opt_algebraic.py')
-rw-r--r--src/glsl/nir/nir_opt_algebraic.py2
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 9b40d4885c1..a5fe19ab988 100644
--- a/src/glsl/nir/nir_opt_algebraic.py
+++ b/src/glsl/nir/nir_opt_algebraic.py
@@ -82,7 +82,7 @@ optimizations = [
(('feq', ('fadd', a, b), 0.0), ('feq', a, ('fneg', b))),
(('fne', ('fadd', a, b), 0.0), ('fne', a, ('fneg', b))),
(('fge', ('fneg', ('fabs', a)), 0.0), ('feq', a, 0.0)),
- (('fmin', ('fmax', a, 1.0), 0.0), ('fsat', a)),
+ (('fmin', ('fmax', a, 0.0), 1.0), ('fsat', a)),
# Logical and bit operations
(('fand', a, 0.0), 0.0),
(('iand', a, a), a),