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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user