summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_gather.c
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2016-04-02 14:31:16 +0100
committerJose Fonseca <[email protected]>2016-04-03 09:51:27 +0100
commitbcfb86b09de3bfc9c7cdf6925658b5e529a8fc62 (patch)
tree3609f16a54701d648f10beba4b7b0450300e6f0d /src/gallium/auxiliary/gallivm/lp_bld_gather.c
parent6d54096fa6cde0ebc7da29468071fe2c34aec0cf (diff)
gallivm: Use standard LLVMSetAlignment from LLVM 3.4 onwards.
Only provide a fallback for LLVM 3.3. One less dependency on LLVM C++ interface. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_gather.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_gather.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_gather.c b/src/gallium/auxiliary/gallivm/lp_bld_gather.c
index d02602041ce..c641c8bafc1 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_gather.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_gather.c
@@ -112,7 +112,7 @@ lp_build_gather_elem(struct gallivm_state *gallivm,
* gallium could not do anything else except 16 no matter what...
*/
if (!aligned) {
- lp_set_load_alignment(res, 1);
+ LLVMSetAlignment(res, 1);
}
assert(src_width <= dst_width);