projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81fe198
)
gallivm: LLVMConstBitCast -> LLVMBuildBitCast
author
José Fonseca
<jfonseca@vmware.com>
Sat, 24 Apr 2010 08:58:41 +0000
(09:58 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Sat, 24 Apr 2010 09:06:27 +0000
(10:06 +0100)
As the argument in general might not be a constant.
src/gallium/auxiliary/gallivm/lp_bld_arit.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index d69676331727e72ec12cc62a05b2d3177bd67ddc..5f9d4c62d1c049514d14bae9dbb77dc9236ab0fb 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@
-1503,7
+1503,7
@@
lp_build_log2_approx(struct lp_build_context *bld,
}
if(p_exp) {
- exp = LLVM
ConstBitCast(exp, vec_type
);
+ exp = LLVM
BuildBitCast(bld->builder, exp, vec_type, ""
);
*p_exp = exp;
}
@@
-1575,8
+1575,10
@@
lp_build_float_log2_approx(struct lp_build_context *bld,
res = LLVMBuildAdd(bld->builder, logmant, logexp, "");
}
- if(p_exp)
+ if(p_exp) {
+ exp = LLVMBuildBitCast(bld->builder, exp, float_type, "");
*p_exp = exp;
+ }
if(p_floor_log2)
*p_floor_log2 = logexp;