spirv: improve creation of memory_barrier
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 2 Mar 2020 13:56:50 +0000 (13:56 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 11:49:40 +0000 (11:49 +0000)
commit6d839addf953630afa52200d5e9922646227d84d
tree9f48e8ad16ec090c613f3b29183b199da4018556
parent5d713fb66e71bec3d4c9a6324fd0b6b52040ecb2
spirv: improve creation of memory_barrier

It shouldn't check for atomic counters or return in case we also need to
create a TCS output barrier.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4003>
src/compiler/spirv/spirv_to_nir.c