radv: Use nir_opt_ray_query_ranges
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Wed, 18 May 2022 18:15:06 +0000 (20:15 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Nov 2022 15:17:08 +0000 (15:17 +0000)
commitbd9396c357b0c03108b78b1b304e69312eb5719f
tree8dbd4dd1c87a6fec1f6e63199ddfec9812977fc4
parentf5b657658588e57606a179037cccf528de6605de
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 <konstantin.seurer@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16593>
src/amd/vulkan/radv_shader.c