nir/tests: Use nir_scoped_memory_barrier() helper
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 9 Jan 2020 18:05:31 +0000 (10:05 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 19:12:11 +0000 (19:12 +0000)
commit6be766336a0ebb556f44765e3d6f6af0e67070a1
tree36b6fdbb19e2c98261e09905a8ef2666c8aed57e
parent6ff898a6530e19815e2877f5a5da54f7e6746cfa
nir/tests: Use nir_scoped_memory_barrier() helper

Most of the vars tests already had a local helper, so just drop it in
favor of the one in nir_builder.  Remaining two tests changed to use
the helper.

The load_store_vectorizer tests were using the specific memory
barriers, but since scoped barriers are also handled, prefer that.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3913>
src/compiler/nir/tests/load_store_vectorizer_tests.cpp
src/compiler/nir/tests/vars_tests.cpp