Module: Mesa Branch: main Commit: babc0b07483fd134ade0d741a75ce928050cdc22 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=babc0b07483fd134ade0d741a75ce928050cdc22
Author: Georg Lehmann <[email protected]> Date: Thu Sep 23 22:31:26 2021 +0200 radv: Remove dead min waves code. Signed-off-by: Georg Lehmann <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13005> --- src/amd/vulkan/radv_pipeline.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 30caf4b8326..e0d30401c78 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -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; }
