spirv: Add support for SpvCapabilityStorageImageWriteWithoutFormat
authorAlex Smith <asmith@feralinteractive.com>
Tue, 14 Feb 2017 10:34:48 +0000 (10:34 +0000)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Feb 2017 16:16:52 +0000 (08:16 -0800)
commit94d48b7f9f143ff333dff4eba8069ee26acbf4e0
tree65b1a0191382abab7deb752c6d9a0ef75be9733f
parent5c6eaa1421bd6f95437f00629c09b8ddf7c39ed8
spirv: Add support for SpvCapabilityStorageImageWriteWithoutFormat

Allow that capability if the driver indicates that it is supported, and
flag whether images are read-only/write-only in the nir_variable (based
on the NonReadable and NonWritable decorations), which drivers may need
to implement this.

Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/spirv/nir_spirv.h
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c