nir: Use a bitfield for image access qualifiers
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 16 Aug 2018 20:11:12 +0000 (15:11 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 29 Aug 2018 19:04:02 +0000 (14:04 -0500)
commit3942943819a87ad423df56e3138223fc37f5db21
treeb99ea979073e479a25136d32d96846ee646ac24c
parent48e4fa7dd8c4b777989c4a731d6ac54cfe6c24eb
nir: Use a bitfield for image access qualifiers

This commit expands the current memory access enum to contain the extra
two bits provided for images.  We choose to follow the SPIR-V convention
of NonReadable and NonWriteable because readonly implies that you *can*
read so readonly + writeonly doesn't make as much sense as NonReadable +
NonWriteable.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/amd/common/ac_nir_to_llvm.c
src/compiler/glsl/gl_nir_link_uniforms.c
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.h
src/compiler/nir/nir_print.c
src/compiler/shader_enums.h
src/compiler/spirv/vtn_variables.c
src/intel/compiler/brw_nir_lower_image_load_store.c
src/intel/vulkan/anv_nir_apply_pipeline_layout.c