diff options
author | Brian Paul <brianp@vmware.com> | 2010-09-16 09:00:54 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-09-16 09:00:54 -0600 |
commit | 7640151c3d9692bc5e43da04dab5697692a07f86 (patch) | |
tree | c500a884d4acf19a648a7761f91be5f583bf7201 /src/gallium/auxiliary/gallivm/lp_bld_swizzle.c | |
parent | 3c9f4c7b750ce7e9c60d75dbe186aaaf69e4baab (diff) |
gallivm: move i32_vec_type inside the #ifdef
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_swizzle.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_swizzle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c b/src/gallium/auxiliary/gallivm/lp_bld_swizzle.c index 1dfbe56634..2e9e8386de 100644 --- 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, |