summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-04-24 09:58:41 +0100
committerJosé Fonseca <[email protected]>2010-04-24 10:06:27 +0100
commit35a920e83b2e85f1180d9c0a752ef917f2e08416 (patch)
tree0db3af2b7fd02f7c735c5a8cd95920f2ebf31fc0 /src/gallium/auxiliary
parent81fe19843ac2afdc4fa1e1c87bc979b295af240e (diff)
gallivm: LLVMConstBitCast -> LLVMBuildBitCast
As the argument in general might not be a constant.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_arit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index d6967633172..5f9d4c62d1c 100644
--- 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 = LLVMConstBitCast(exp, vec_type);
+ exp = LLVMBuildBitCast(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;