projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6706537
)
nir: Fix broken fsat recognizer.
author
Eric Anholt
<eric@anholt.net>
Fri, 30 Jan 2015 22:03:14 +0000
(14:03 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 6 Feb 2015 23:57:55 +0000
(15:57 -0800)
We've probably never seen this ridiculous pattern in the wild, so it
didn't matter.
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_opt_algebraic.py
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_opt_algebraic.py
b/src/glsl/nir/nir_opt_algebraic.py
index 9b40d4885c1e67cd30fd9177e39da67ac052f6e4..a5fe19ab988774ed1995e30548296f28d51d4544 100644
(file)
--- 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),