mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01: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
d508bf862b
commit
846e38f1c3
1 changed files with 1 additions and 1 deletions
|
|
@ -1285,7 +1285,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