spirv: Fix order of barriers in SpvOpControlBarrier
authorDaniel Schürmann <daniel@schuermann.dev>
Thu, 18 Jul 2019 18:48:14 +0000 (20:48 +0200)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 19 Jul 2019 17:37:37 +0000 (10:37 -0700)
commite352b4d650d37730e5087792b9a74ef31d1974ab
treea98ccdccd2a7e3bc8edbed79ffacfb75458f63b7
parent4061a3f6c96fc2029b7356ecbbb045a35f2aba78
spirv: Fix order of barriers in SpvOpControlBarrier

Semantically, the memory barrier has to come first to wait
for the completion of pending memory requests.
Afterwards, the workgroups can be synchronized.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/spirv/spirv_to_nir.c