mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
llvmpipe: Fix typo in lp_build_log constant.
This commit is contained in:
parent
079b1cf4cf
commit
72c9878069
1 changed files with 1 additions and 1 deletions
|
|
@ -1083,7 +1083,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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue