From bdf680cd3fe08b97991de2b1545567697f5fc9bb Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 10 Nov 2022 16:32:50 +0200 Subject: [PATCH] intel/fs: use nir_opt_ray_query_ranges Results on DG2 q2rtx shaders: Totals from 6 (12.24% of 49) affected shaders: Instrs: 88927 -> 54088 (-39.18%) Cycles: 4115088 -> 2536902 (-38.35%) Send messages: 2639 -> 1609 (-39.03%) Spill count: 1321 -> 613 (-53.60%) Fill count: 3130 -> 1104 (-64.73%) Scratch Memory Size: 22528 -> 18432 (-18.18%) Signed-off-by: Lionel Landwerlin Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_nir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index fcea4b40b54..1ab004b68d4 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -643,6 +643,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_opt_combine_stores, nir_var_all); OPT(nir_opt_ray_queries); + OPT(nir_opt_ray_query_ranges); if (is_scalar) { OPT(nir_lower_alu_to_scalar, NULL, NULL);