intel/fs: use nir_opt_ray_query_ranges
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 10 Nov 2022 14:32:50 +0000 (16:32 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Nov 2022 15:17:08 +0000 (15:17 +0000)
commitbdf680cd3fe08b97991de2b1545567697f5fc9bb
treebe9ab7e2c045482b0763533c160154132f182abd
parentbd9396c357b0c03108b78b1b304e69312eb5719f
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 <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16593>
src/intel/compiler/brw_nir.c