radv: use wave32 for small workgroups

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/23555>
This commit is contained in:
Rhys Perry
2023-06-09 15:41:05 +01:00
committed by Marge Bot
parent b765a27d73
commit 532407094a
+3
View File
@@ -673,6 +673,9 @@ gather_shader_info_cs(struct radv_device *device, const nir_shader *nir, const s
info->cs.subgroup_size = pipeline_key->cs.compute_subgroup_size;
} else if (require_full_subgroups) {
info->cs.subgroup_size = RADV_SUBGROUP_SIZE;
} else if (device->physical_device->rad_info.gfx_level >= GFX10 && local_size <= 32) {
/* Use wave32 for small workgroups. */
info->cs.subgroup_size = 32;
} else {
info->cs.subgroup_size = default_wave_size;
}