llvmpipe: Shader function arguments don't alias.

This commit is contained in:
José Fonseca 2009-08-16 10:02:17 +01:00
parent 539c55da16
commit a7f9b915ae

View file

@ -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);