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:
13fb7f8
)
ac/nir/ngg: add one odd dword to nogs culling pervertex lds
author
Qiang Yu
<yuq825@gmail.com>
Tue, 11 Oct 2022 08:36:49 +0000
(16:36 +0800)
committer
Marge Bot
<emma+marge@anholt.net>
Thu, 27 Oct 2022 07:35:01 +0000
(07:35 +0000)
radeonsi use like this.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18832>
src/amd/common/ac_nir_lower_ngg.c
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_nir_lower_ngg.c
b/src/amd/common/ac_nir_lower_ngg.c
index
bd6e308
..
030295c
100644
(file)
--- a/
src/amd/common/ac_nir_lower_ngg.c
+++ b/
src/amd/common/ac_nir_lower_ngg.c
@@
-1312,7
+1312,8
@@
ngg_nogs_get_culling_pervertex_lds_size(gl_shader_stage stage,
if (max_exported_args)
*max_exported_args = max_args;
- return lds_es_arg_0 + max_args * 4u;
+ /* one odd dword to reduce LDS bank conflict */
+ return (lds_es_arg_0 + max_args * 4u) | 4u;
}
static void