diff options
author | José Fonseca <[email protected]> | 2009-08-16 10:02:17 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:32 +0100 |
commit | a7f9b915aeade96d8ca58d70a1f1d42cd6a16e3d (patch) | |
tree | c397e75a966363272d5e921b1955eed56734d6f0 | |
parent | 539c55da16ca97bb2280edcb8cbbb9514e4c49cb (diff) |
llvmpipe: Shader function arguments don't alias.
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |