From b46e412c2e0c8b713e857a05f12a91c88a22933f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 24 Feb 2017 23:14:35 +0100 Subject: [PATCH] radeonsi: set noalias on input shader pointers --- src/gallium/drivers/radeonsi/si_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 4fa46d4ff17..75567af778e 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -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); -- 2.30.2