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>
This commit is contained in:

committed by
Marge Bot

parent
bd9396c357
commit
bdf680cd3f
@@ -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);
|
||||
|
Reference in New Issue
Block a user