10beddf659
Previously it was 16 and bigger patches would always trim the patch count needlessly. There are 2 variables to consider: - lane occupancy - LDS usage (limiting wave occupancy) If LDS size is 32 KB (max limit per CU) for 3 waves and we can't maximize occupancy, it's better to leave some lanes unoccupied because using 2 waves would decrease the LDS size to 21 KB, which is not enough to fit another workgroup on the CU. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7623>