radeonsi: always add 1 to lshs_vertex_stride now that LS_OUT_PATCH_SIZE is gone
authorMarek Olšák <marek.olsak@amd.com>
Mon, 20 Feb 2023 05:22:48 +0000 (00:22 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Feb 2023 21:27:24 +0000 (21:27 +0000)
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>

src/gallium/drivers/radeonsi/si_shader_info.c

index ddfbe85..9fc5b38 100644 (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;