projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33be5ad
)
radeonsi: raise the alignment of LDS memory for compute shaders
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Sat, 4 May 2019 10:37:36 +0000
(12:37 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 13 Jun 2019 00:28:23 +0000
(20:28 -0400)
This implies that the memory will always be at address 0, which allows
LLVM to generate slightly better code.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
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
3617214
..
ed2db3d
100644
(file)
--- a/
src/gallium/drivers/radeonsi/si_shader.c
+++ b/
src/gallium/drivers/radeonsi/si_shader.c
@@
-2217,7
+2217,7
@@
void si_declare_compute_memory(struct si_shader_context *ctx)
LLVMArrayType(ctx->i8, lds_size),
"compute_lds",
AC_ADDR_SPACE_LDS);
- LLVMSetAlignment(var, 4);
+ LLVMSetAlignment(var,
64 * 102
4);
ctx->ac.lds = LLVMBuildBitCast(ctx->ac.builder, var, i8p, "");
}