projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d508bf8
)
llvmpipe: Fix bad SI -> FP conversion into lp_build_log2_approx.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 15 Dec 2009 12:13:43 +0000
(12:13 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 15 Dec 2009 13:15:16 +0000
(13:15 +0000)
It should be a bitcast as the integer value is actually an encoded FP
already.
src/gallium/drivers/llvmpipe/lp_bld_arit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_bld_arit.c
b/src/gallium/drivers/llvmpipe/lp_bld_arit.c
index 9c59677a741adc361320751f2af0333fb274e5aa..4fd459e593e45af380e9cfa035f07ade562ac373 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_bld_arit.c
+++ b/
src/gallium/drivers/llvmpipe/lp_bld_arit.c
@@
-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 = LLVMBuild
SIToFP
(bld->builder, mant, vec_type, "");
+ mant = LLVMBuild
BitCast
(bld->builder, mant, vec_type, "");
logmant = lp_build_polynomial(bld, mant, lp_build_log2_polynomial,
Elements(lp_build_log2_polynomial));