From: José Fonseca Date: Sun, 16 Aug 2009 09:02:17 +0000 (+0100) Subject: llvmpipe: Shader function arguments don't alias. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7f9b915aeade96d8ca58d70a1f1d42cd6a16e3d;p=mesa.git llvmpipe: Shader function arguments don't alias. --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index c148a9f8e7a..b9bb7abb0b0 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -88,6 +88,8 @@ shader_generate(struct llvmpipe_screen *screen, shader->function = LLVMAddFunction(screen->module, "shader", func_type); LLVMSetFunctionCallConv(shader->function, LLVMCCallConv); + for(i = 0; i < Elements(arg_types); ++i) + LLVMAddAttribute(LLVMGetParam(shader->function, i), LLVMNoAliasAttribute); pos_ptr = LLVMGetParam(shader->function, 0); a0_ptr = LLVMGetParam(shader->function, 1);