nir, intel: Move use_scoped_memory_barrier to nir_options
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 11 Jan 2020 00:25:02 +0000 (16:25 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 19:12:11 +0000 (19:12 +0000)
commit956e4b2d371736e073542cf8556f0c972c197989
treed20de2e73fd5333540b04518bd6eb127082f0e5b
parent6be766336a0ebb556f44765e3d6f6af0e67070a1
nir, intel: Move use_scoped_memory_barrier to nir_options

This option will be used later by GLSL, so move to a common struct.

Because nir_options is filled in the compiler instead of the Vulkan
driver, fix that up.  GLSL will ignore that for now.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3913>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3913>
src/compiler/nir/nir.h
src/compiler/spirv/nir_spirv.h
src/compiler/spirv/spirv_to_nir.c
src/intel/compiler/brw_compiler.c
src/intel/vulkan/anv_pipeline.c