mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
gallivm: make sure we return the correct type when approximating log's
This commit is contained in:
parent
8bee4c7718
commit
63aa9b505a
1 changed files with 3 additions and 1 deletions
|
|
@ -1502,8 +1502,10 @@ lp_build_log2_approx(struct lp_build_context *bld,
|
|||
res = LLVMBuildAdd(bld->builder, logmant, logexp, "");
|
||||
}
|
||||
|
||||
if(p_exp)
|
||||
if(p_exp) {
|
||||
exp = LLVMConstBitCast(exp, vec_type);
|
||||
*p_exp = exp;
|
||||
}
|
||||
|
||||
if(p_floor_log2)
|
||||
*p_floor_log2 = logexp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue