ac/radv/radeonsi: refactor max simd waves into common code.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -615,17 +615,7 @@ generate_shader_stats(struct radv_device *device,
|
||||
unsigned max_simd_waves;
|
||||
unsigned lds_per_wave = 0;
|
||||
|
||||
switch (device->physical_device->rad_info.family) {
|
||||
/* These always have 8 waves: */
|
||||
case CHIP_POLARIS10:
|
||||
case CHIP_POLARIS11:
|
||||
case CHIP_POLARIS12:
|
||||
case CHIP_VEGAM:
|
||||
max_simd_waves = 8;
|
||||
break;
|
||||
default:
|
||||
max_simd_waves = 10;
|
||||
}
|
||||
max_simd_waves = ac_get_max_simd_waves(device->physical_device->rad_info.family);
|
||||
|
||||
conf = &variant->config;
|
||||
|
||||
|
Reference in New Issue
Block a user