mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
llvmpipe: Shader function arguments don't alias.
This commit is contained in:
parent
539c55da16
commit
a7f9b915ae
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue