radeonsi: always add 1 to lshs_vertex_stride now that LS_OUT_PATCH_SIZE is gone

LS_OUT_PATCH_SIZE limited the maximum value.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>
This commit is contained in:
Marek Olšák
2023-02-20 00:22:48 -05:00
committed by Marge Bot
parent b9c6ef7f51
commit 23e7d44a88

View File

@@ -784,11 +784,10 @@ void si_nir_scan_shader(struct si_screen *sscreen, const struct nir_shader *nir,
/* Add 1 dword to reduce LDS bank conflicts, so that each vertex
* will start on a different bank. (except for the maximum 32*16).
*/
if (info->lshs_vertex_stride < 32 * 16)
info->lshs_vertex_stride += 4;
info->lshs_vertex_stride += 4;
/* For the ESGS ring in LDS, add 1 dword to reduce LDS bank
* conflicts, i.e. each vertex will start at a different bank.
* conflicts, i.e. each vertex will start on a different bank.
*/
if (sscreen->info.gfx_level >= GFX9)
info->esgs_itemsize += 4;