From bfb6a5fef11c7efd9366be87e4ddd41cfcced2aa Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Tue, 11 Oct 2022 16:36:49 +0800 Subject: [PATCH] ac/nir/ngg: add one odd dword to nogs culling pervertex lds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit radeonsi use like this. Reviewed-by: Marek Olšák Signed-off-by: Qiang Yu Part-of: --- src/amd/common/ac_nir_lower_ngg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_nir_lower_ngg.c b/src/amd/common/ac_nir_lower_ngg.c index bd6e30861d2..030295c5a1a 100644 --- 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