nir: Add pass to combine adjacent scoped memory barriers
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 21 Feb 2020 18:53:05 +0000 (10:53 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 19:21:36 +0000 (19:21 +0000)
commitbf432cd831c789c02f9474f836e3259f2a73abd3
tree241ac2499665ff398263968893e1946e1d44338e
parentd31a8ed8fd560fd71be10956d09987dc47f20a01
nir: Add pass to combine adjacent scoped memory barriers

SPIR-V generates very granular barriers, however HW and backends might
not necessarily take advantage of those.  This pass provides a general
mechanism to combine such barriers.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3224>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_barriers.c [new file with mode: 0644]