mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
llvmpipe: Fix bad SI -> FP conversion into lp_build_log2_approx.
It should be a bitcast as the integer value is actually an encoded FP already.
This commit is contained in:
parent
8db8adfd01
commit
4eb48a3af7
1 changed files with 1 additions and 1 deletions
|
|
@ -1284,7 +1284,7 @@ lp_build_log2_approx(struct lp_build_context *bld,
|
|||
/* mant = (float) mantissa(x) */
|
||||
mant = LLVMBuildAnd(bld->builder, i, mantmask, "");
|
||||
mant = LLVMBuildOr(bld->builder, mant, one, "");
|
||||
mant = LLVMBuildSIToFP(bld->builder, mant, vec_type, "");
|
||||
mant = LLVMBuildBitCast(bld->builder, mant, vec_type, "");
|
||||
|
||||
logmant = lp_build_polynomial(bld, mant, lp_build_log2_polynomial,
|
||||
Elements(lp_build_log2_polynomial));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue