llvmpipe: Fix yet another copynpaste typo in lp_build_log2_approx.

Now fslight looks perfect.
This commit is contained in:
José Fonseca 2009-12-15 14:46:43 +00:00
parent 0451d0fd01
commit e20547042c

View file

@ -1290,7 +1290,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, "");
}