From c4cdbee2e6ffdecc422919e6c3986880d9a88b8d Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Wed, 10 Sep 2025 15:44:35 +0200 Subject: [PATCH] radv: remove unused ballot_bit_size from shader info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_shader_info.c | 11 ----------- src/amd/vulkan/radv_shader_info.h | 1 - 2 files changed, 12 deletions(-) diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index f547de10be3..572febc2ee6 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -502,16 +502,6 @@ radv_get_wave_size(struct radv_device *device, mesa_shader_stage stage, const st return pdev->ge_wave_size; } -static uint8_t -radv_get_ballot_bit_size(struct radv_device *device, mesa_shader_stage stage, const struct radv_shader_info *info, - const struct radv_shader_stage_key *stage_key) -{ - if (stage_key->subgroup_required_size) - return stage_key->subgroup_required_size * 32; - - return 64; -} - static uint32_t radv_compute_esgs_itemsize(const struct radv_device *device, uint32_t num_varyings) { @@ -1191,7 +1181,6 @@ radv_nir_shader_info_pass(struct radv_device *device, const struct nir_shader *n } info->wave_size = radv_get_wave_size(device, nir->info.stage, info, stage_key); - info->ballot_bit_size = radv_get_ballot_bit_size(device, nir->info.stage, info, stage_key); switch (nir->info.stage) { case MESA_SHADER_COMPUTE: diff --git a/src/amd/vulkan/radv_shader_info.h b/src/amd/vulkan/radv_shader_info.h index fe4277610a9..8b688b2b624 100644 --- a/src/amd/vulkan/radv_shader_info.h +++ b/src/amd/vulkan/radv_shader_info.h @@ -89,7 +89,6 @@ struct radv_shader_info { bool uses_invocation_id; bool uses_prim_id; uint8_t wave_size; - uint8_t ballot_bit_size; struct radv_userdata_locations user_sgprs_locs; bool is_ngg; bool is_ngg_passthrough;