From f572344901e40f457c39448e3e198cd2867bc66c Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Mon, 1 May 2023 19:04:54 +0200 Subject: [PATCH] radv: use lower_ballot_bit_count_to_mbcnt_amd Foz-DB Navi21: Totals from 62 (0.05% of 134864) affected shaders: VGPRs: 2464 -> 2440 (-0.97%) CodeSize: 332408 -> 324276 (-2.45%) MaxWaves: 1690 -> 1692 (+0.12%) Instrs: 62356 -> 60828 (-2.45%) Latency: 595723 -> 592554 (-0.53%) InvThroughput: 126106 -> 124241 (-1.48%) SClause: 2163 -> 2162 (-0.05%) Copies: 6392 -> 6226 (-2.60%); split: -2.94%, +0.34% Branches: 2295 -> 2298 (+0.13%) PreSGPRs: 2390 -> 2389 (-0.04%) PreVGPRs: 2139 -> 2117 (-1.03%); split: -1.08%, +0.05% Reviewed-by: Rhys Perry Part-of: --- src/amd/vulkan/radv_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index f623905..d86fa9e 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -651,6 +651,7 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_pipeline_ .lower_quad_broadcast_dynamic = 1, .lower_quad_broadcast_dynamic_to_const = gfx7minus, .lower_shuffle_to_swizzle_amd = 1, + .lower_ballot_bit_count_to_mbcnt_amd = 1, }); NIR_PASS(_, nir, nir_lower_load_const_to_scalar); -- 2.7.4