mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
radeonsi: set noalias on input shader pointers
This commit is contained in:
parent
d4324ddb89
commit
b46e412c2e
1 changed files with 1 additions and 0 deletions
|
|
@ -5152,6 +5152,7 @@ static void si_create_function(struct si_shader_context *ctx,
|
|||
*/
|
||||
if (LLVMGetTypeKind(LLVMTypeOf(P)) == LLVMPointerTypeKind) {
|
||||
lp_add_function_attr(ctx->main_fn, i + 1, LP_FUNC_ATTR_BYVAL);
|
||||
lp_add_function_attr(ctx->main_fn, i + 1, LP_FUNC_ATTR_NOALIAS);
|
||||
lp_add_attr_dereferenceable(P, UINT64_MAX);
|
||||
} else
|
||||
lp_add_function_attr(ctx->main_fn, i + 1, LP_FUNC_ATTR_INREG);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue