radeonsi: limit HS LDS usage per workgroup to 16K to allow at least 2 WGs/CU
authorMarek Olšák <marek.olsak@amd.com>
Fri, 13 Nov 2020 05:38:06 +0000 (00:38 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 23 Nov 2020 02:22:21 +0000 (02:22 +0000)
commit5df5ee2722f44782d8bb6562d0e11ffff813ed46
tree7f6866ae74ae250bbe4c5e7c8c8190d170fd57c7
parentbdee9dc633fd3aed4c27bf09c285dfd788c803ad
radeonsi: limit HS LDS usage per workgroup to 16K to allow at least 2 WGs/CU

This increases occupancy when the LDS size is e.g. 20K for 3 waves.
If we limit the size to 16K, we can fit 2 workgroups with 2 waves each,
so 4 waves in total.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7623>
src/gallium/drivers/radeonsi/si_state_draw.c