spirv: Split the vtn_emit_scoped_memory_barrier() logic
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 23 Apr 2020 12:16:43 +0000 (14:16 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 07:39:52 +0000 (07:39 +0000)
commit94438a64bf7e5cd37c56e954156d59e404d76f55
tree2b493006c9eb4eda016ee22f284d7a287fcc761d
parentd3c937c0e4d1dd05072d9a7169532517ef7d0c7f
spirv: Split the vtn_emit_scoped_memory_barrier() logic

We are about to add support for scoped control+memory barriers. Let's
move the convert from SPIRV to NIR enums logic in helpers so we can
easily re-use them.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4900>
src/compiler/spirv/spirv_to_nir.c