radv: Remove dead min waves code.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13005>
This commit is contained in:
Georg Lehmann
2021-09-23 22:31:26 +02:00
committed by Marge Bot
parent 52acefc011
commit babc0b0748
-8
View File
@@ -255,7 +255,6 @@ radv_pipeline_init_scratch(const struct radv_device *device, struct radv_pipelin
{
unsigned scratch_bytes_per_wave = 0;
unsigned max_waves = 0;
unsigned min_waves = 1;
for (int i = 0; i < MESA_SHADER_STAGES; ++i) {
if (pipeline->shaders[i] && pipeline->shaders[i]->config.scratch_bytes_per_wave) {
@@ -271,13 +270,6 @@ radv_pipeline_init_scratch(const struct radv_device *device, struct radv_pipelin
}
}
if (pipeline->shaders[MESA_SHADER_COMPUTE]) {
unsigned group_size = pipeline->shaders[MESA_SHADER_COMPUTE]->info.cs.block_size[0] *
pipeline->shaders[MESA_SHADER_COMPUTE]->info.cs.block_size[1] *
pipeline->shaders[MESA_SHADER_COMPUTE]->info.cs.block_size[2];
min_waves = MAX2(min_waves, round_up_u32(group_size, 64));
}
pipeline->scratch_bytes_per_wave = scratch_bytes_per_wave;
pipeline->max_waves = max_waves;
}