Mesa (mesa_7_7_branch): llvmpipe: Fix typo in lp_build_log constant.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Jan 28 20:23:02 UTC 2010
Module: Mesa
Branch: mesa_7_7_branch
Commit: aa8b23e077f8c4f4c517e58533a72db0fb861091
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa8b23e077f8c4f4c517e58533a72db0fb861091
Author: José Fonseca <jfonseca at vmware.com>
Date: Tue Dec 15 13:58:53 2009 +0000
llvmpipe: Fix typo in lp_build_log constant.
---
src/gallium/drivers/llvmpipe/lp_bld_arit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_arit.c b/src/gallium/drivers/llvmpipe/lp_bld_arit.c
index d35e13b..9ed15bc 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_arit.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_arit.c
@@ -1082,7 +1082,7 @@ lp_build_log(struct lp_build_context *bld,
LLVMValueRef x)
{
/* log(2) */
- LLVMValueRef log2 = lp_build_const_scalar(bld->type, 1.4426950408889634);
+ LLVMValueRef log2 = lp_build_const_scalar(bld->type, 0.69314718055994529);
return lp_build_mul(bld, log2, lp_build_exp2(bld, x));
}
More information about the mesa-commit
mailing list