From: Roland Scheidegger Date: Sun, 8 May 2016 00:27:45 +0000 (+0200) Subject: gallivm: use InternalLinkage instead of PrivateLinkage for texture functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c200894c80b3e9ae3519ded9cc1b311e79c0e24;p=mesa.git gallivm: use InternalLinkage instead of PrivateLinkage for texture functions At least with MCJIT the disassembler will crash otherwise when trying to disassemble such functions. Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c index 31cf74f0ceb..3a8327d8305 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c @@ -3320,7 +3320,7 @@ lp_build_sample_soa_func(struct gallivm_state *gallivm, } LLVMSetFunctionCallConv(function, LLVMFastCallConv); - LLVMSetLinkage(function, LLVMPrivateLinkage); + LLVMSetLinkage(function, LLVMInternalLinkage); lp_build_sample_gen_func(gallivm, static_texture_state,