spirv: Use scoped barriers for SpvOpControlBarrier
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 5 May 2020 08:31:02 +0000 (10:31 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 07:39:52 +0000 (07:39 +0000)
commit3ed2123d77d50ccb984fccdcc1cfa936a18819bf
treee08ed0e1a3c7db2c028d321e132daddcd5a62157
parent689acc73989987667ad744026647acc35305839b
spirv: Use scoped barriers for SpvOpControlBarrier

If use_scoped_barrier is set to true, we don't have to split the control
and memory barriers.

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