Module: Mesa
Branch: master
Commit: 05ee6627d6112b2874f373e8302540e22ccc317c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=05ee6627d6112b2874f373e8302540e22ccc317c

Author: Matt Turner <matts...@gmail.com>
Date:   Wed Mar 30 19:18:16 2016 -0700

nir: Fix typo from commit 6702f1acde9.

---

 src/compiler/nir/nir_opt_algebraic.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir_opt_algebraic.py 
b/src/compiler/nir/nir_opt_algebraic.py
index c2e56e7..2fac9ad 100644
--- a/src/compiler/nir/nir_opt_algebraic.py
+++ b/src/compiler/nir/nir_opt_algebraic.py
@@ -271,7 +271,7 @@ optimizations = [
 
    # Propagate negation up multiplication chains
    (('fmul', ('fneg', a), b), ('fneg', ('fmul', a, b))),
-   (('imul', ('ineg', a), b), ('ineg', ('fmul', a, b))),
+   (('imul', ('ineg', a), b), ('ineg', ('imul', a, b))),
 
    # Misc. lowering
    (('fmod', a, b), ('fsub', a, ('fmul', b, ('ffloor', ('fdiv', a, b)))), 
'options->lower_fmod'),

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to