From bd9396c357b0c03108b78b1b304e69312eb5719f Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Wed, 18 May 2022 20:15:06 +0200 Subject: [PATCH] radv: Use nir_opt_ray_query_ranges Quake II RTX: Totals from 6 (12.24% of 49) affected shaders: VGPRs: 584 -> 568 (-2.74%) CodeSize: 152408 -> 152224 (-0.12%); split: -0.21%, +0.09% Scratch: 252928 -> 116736 (-53.85%) MaxWaves: 58 -> 60 (+3.45%) Instrs: 28914 -> 28874 (-0.14%); split: -0.21%, +0.08% Latency: 443165 -> 442141 (-0.23%) InvThroughput: 97155 -> 94797 (-2.43%) SClause: 719 -> 720 (+0.14%) Copies: 4560 -> 4498 (-1.36%); split: -1.40%, +0.04% PreVGPRs: 544 -> 535 (-1.65%) Signed-off-by: Konstantin Seurer Reviewed-by: Lionel Landwerlin 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 04e3714058e..8a6e7c0419f 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -978,6 +978,7 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_pipeline_ if (nir->info.ray_queries > 0) { NIR_PASS(_, nir, nir_opt_ray_queries); + NIR_PASS(_, nir, nir_opt_ray_query_ranges); NIR_PASS(_, nir, radv_nir_lower_ray_queries, device); }