Mesa (master): gallivm: Fix lp_build_exp/lp_build_log.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat Jul 23 01:52:31 UTC 2011


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Jul 19 15:58:09 2011 -0700

gallivm: Fix lp_build_exp/lp_build_log.

Never used so far -- we only used the base 2 variants -- which is why
it went unnoticed so far.

---

 src/gallium/auxiliary/gallivm/lp_bld_arit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index 02b3bde..06e5deb 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@ -2151,7 +2151,7 @@ lp_build_exp(struct lp_build_context *bld,
 
    assert(lp_check_value(bld->type, x));
 
-   return lp_build_mul(bld, log2e, lp_build_exp2(bld, x));
+   return lp_build_exp2(bld, lp_build_mul(bld, log2e, x));
 }
 
 
@@ -2168,7 +2168,7 @@ lp_build_log(struct lp_build_context *bld,
 
    assert(lp_check_value(bld->type, x));
 
-   return lp_build_mul(bld, log2, lp_build_exp2(bld, x));
+   return lp_build_mul(bld, log2, lp_build_log2(bld, x));
 }
 
 




More information about the mesa-commit mailing list