From 5c200894c80b3e9ae3519ded9cc1b311e79c0e24 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Sun, 8 May 2016 02:27:45 +0200 Subject: [PATCH] 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 --- src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2