spirv: Handle PhysicalStorageBuffer in memory barriers
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 8 Jan 2020 21:30:43 +0000 (13:30 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 14 Jan 2020 22:42:12 +0000 (14:42 -0800)
commitd8440a3d2f4fb8a0b816c8e0884738de9797f09d
tree01708eba5181a68b7a77fa2b8105b7747c6381fc
parent1ec0d4fdffe772a33c46bb5620a8928233c345b1
spirv: Handle PhysicalStorageBuffer in memory barriers

PhysicalStorageBuffer is lowered to nir_var_mem_global, and
SPIR-V 1.5rev1 in section "3.25. Memory Semantics <id>" says

    UniformMemory

    Apply the memory-ordering constraints to StorageBuffer,
    PhysicalStorageBuffer, or Uniform Storage Class memory.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3322>
src/compiler/spirv/spirv_to_nir.c