intel/compiler: Extract control barriers from scoped barriers
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 5 May 2020 08:18:29 +0000 (10:18 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 07:39:52 +0000 (07:39 +0000)
commit689acc73989987667ad744026647acc35305839b
tree9fe53cb210f4edd763d8541b68ded89af4cc3cec
parent345b5847b42bc1889d8665ebd129913550da4352
intel/compiler: Extract control barriers from scoped barriers

Add a lowering pass extracting all control barriers embedded in scoped
barriers into proper control barriers so we can get rid of the logic
inserting control barriers when an SpvOpControlBarrier with WorkGroup
scope is parsed in spirv_to_nir().

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/intel/compiler/brw_nir.c
src/intel/compiler/brw_nir.h
src/intel/compiler/brw_nir_lower_scoped_barriers.c [new file with mode: 0644]
src/intel/compiler/meson.build