mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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.
This commit is contained in:
parent
0a1d49504d
commit
1ac86e249e
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue