Module: Mesa Branch: main Commit: 9f98f20c583fd461bb24997b1d0ae2c1efe6bfd3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f98f20c583fd461bb24997b1d0ae2c1efe6bfd3
Author: Kenneth Graunke <[email protected]> Date: Tue Aug 22 10:40:40 2023 -0700 anv: Use nir_opt_barrier_modes() to drop unnecessary barriers fossil-db stats on Alchemist: Totals: Instrs: 196514947 -> 196513342 (-0.00%); split: -0.00%, +0.00% Cycles: 14271450761 -> 14271426028 (-0.00%); split: -0.00%, +0.00% Send messages: 8022316 -> 8021892 (-0.01%) Totals from 43 (0.01% of 653252) affected shaders: Instrs: 98558 -> 96953 (-1.63%); split: -1.63%, +0.00% Cycles: 15867801 -> 15843068 (-0.16%); split: -0.17%, +0.02% Send messages: 8997 -> 8573 (-4.71%) Reviewed-by: Ian Romanick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24842> --- src/intel/vulkan/anv_pipeline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 74717ba6015..5bbcd6440fe 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -2008,6 +2008,8 @@ anv_pipeline_nir_preprocess(struct anv_pipeline *pipeline, NIR_PASS(_, stage->nir, nir_remove_dead_variables, nir_var_shader_out, NULL); } + NIR_PASS(_, stage->nir, nir_opt_barrier_modes); + nir_shader_gather_info(stage->nir, nir_shader_get_entrypoint(stage->nir)); }
