projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22ee7ee
)
nir/algebraic: Remove a duplicate optimization
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 1 Apr 2015 19:24:37 +0000
(12:24 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 1 Apr 2015 19:51:03 +0000
(12:51 -0700)
This optimization is repeated verbatim above
Reviewed-by: Matt Turner <mattst88@gmail.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 190bd916efe79521565ed443b2a803517bc5d68b..ddf78be77215db7304edce2c7bcdea077692cd7a 100644
(file)
--- a/
src/glsl/nir/nir_opt_algebraic.py
+++ b/
src/glsl/nir/nir_opt_algebraic.py
@@
-172,9
+172,6
@@
optimizations = [
(('iadd', a, ('isub', 0, b)), ('isub', a, b)),
(('fabs', ('fsub', 0.0, a)), ('fabs', a)),
(('iabs', ('isub', 0, a)), ('iabs', a)),
-
-# This one may not be exact
- (('feq', ('fadd', a, b), 0.0), ('feq', a, ('fneg', b))),
]
# Add optimizations to handle the case where the result of a ternary is