diff options
author | Marek Olšák <[email protected]> | 2017-02-24 23:14:35 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-03 15:29:30 +0100 |
commit | b46e412c2e0c8b713e857a05f12a91c88a22933f (patch) | |
tree | 1464793faa902bc43333c431fb7fd4f651d2ff99 /src/gallium | |
parent | d4324ddb89046441f9c6542ba88ee62d4e0c74f0 (diff) |
radeonsi: set noalias on input shader pointers
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |