diff options
author | José Fonseca <[email protected]> | 2009-12-15 14:46:43 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-12-15 14:46:43 +0000 |
commit | 3a15c48ecedb985e2cecaaa9061ff579092069f1 (patch) | |
tree | 0ff3150596f0e826d27af4181158bd24297cbfa2 /src/gallium/drivers/llvmpipe | |
parent | 85c27c3ef7753ee8bae119dd982df09161b44d5f (diff) |
llvmpipe: Fix yet another copynpaste typo in lp_build_log2_approx.
Now fslight looks perfect.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | 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 08c86a3b926..847c2a34b1f 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_arit.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_arit.c @@ -1291,7 +1291,7 @@ lp_build_log2_approx(struct lp_build_context *bld, Elements(lp_build_log2_polynomial)); /* This effectively increases the polynomial degree by one, but ensures that log2(1) == 0*/ - logmant = LLVMBuildMul(bld->builder, logmant, LLVMBuildMul(bld->builder, mant, bld->one, ""), ""); + logmant = LLVMBuildMul(bld->builder, logmant, LLVMBuildSub(bld->builder, mant, bld->one, ""), ""); res = LLVMBuildAdd(bld->builder, logmant, logexp, ""); } |