projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c9f4c7
)
gallivm: move i32_vec_type inside the #ifdef
author
Brian Paul
<brianp@vmware.com>
Thu, 16 Sep 2010 15:00:54 +0000
(09:00 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 16 Sep 2010 15:00:54 +0000
(09:00 -0600)
src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
index 1dfbe56634ebc23eec932e2c5c3a5924c4dc331d..2e9e8386de007de103b92aa7d227ab056dcd991e 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_swizzle.c
@@
-76,11
+76,12
@@
lp_build_broadcast_scalar(struct lp_build_context *bld,
}
else {
LLVMValueRef res;
+
+#if HAVE_LLVM >= 0x207
/* The shuffle vector is always made of int32 elements */
struct lp_type i32_vec_type = lp_type_int_vec(32);
i32_vec_type.length = type.length;
-#if HAVE_LLVM >= 0x207
res = LLVMBuildInsertElement(bld->builder, bld->undef, scalar,
LLVMConstInt(LLVMInt32Type(), 0, 0), "");
res = LLVMBuildShuffleVector(bld->builder, res, bld->undef,