projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4324dd
)
radeonsi: set noalias on input shader pointers
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 24 Feb 2017 22:14:35 +0000
(23:14 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Fri, 3 Mar 2017 14:29:30 +0000
(15:29 +0100)
src/gallium/drivers/radeonsi/si_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_shader.c
b/src/gallium/drivers/radeonsi/si_shader.c
index 4fa46d4ff17a420d988453cd476cc41d386f1dfb..75567af778eb6c708cb8c719636502422ee24f6d 100644
(file)
--- 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);