radv: round up max_lds_per_simd / lds_per_wave
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 28 Jan 2021 13:31:33 +0000 (13:31 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 15 Feb 2021 13:34:30 +0000 (13:34 +0000)
commit6a770cae4b936ab2644b88f233d9dd4be50b853f
tree6b1d90ac1423081dc2699ecef22e0e7ffea419a6
parent267d7074d90c40d7488945ef11adb32618a9baf0
radv: round up max_lds_per_simd / lds_per_wave

If each SIMD has to get an different number of waves, report the maximum.

One example of a situation is when a single-wave workgroup uses more than
max_lds_per_simd. This change causes radv_get_max_waves() to report a
single wave per SIMD instead of none.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8761>
src/amd/vulkan/radv_shader.c