anv: Use nir_opt_barrier_modes() to drop unnecessary barriers
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Aug 2023 17:40:40 +0000 (10:40 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 9 Sep 2023 04:41:24 +0000 (04:41 +0000)
commit9f98f20c583fd461bb24997b1d0ae2c1efe6bfd3
tree2eaa9133b2d43e2ab0f2c081c5255504a3c8b2a9
parent2b14618daa574f1394ed1c0efa898cd8f2519ed7
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 <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24842>
src/intel/vulkan/anv_pipeline.c