nir/spirv: do not require a format with images that are not sampled
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 14 Feb 2017 10:32:18 +0000 (11:32 +0100)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Feb 2017 16:16:52 +0000 (08:16 -0800)
commit5c6eaa1421bd6f95437f00629c09b8ddf7c39ed8
tree740ae8ad25320353920a4c44996ace09ee6ec5cf
parent2c3091858164a1941e75205a823eb6d83b4468ae
nir/spirv: do not require a format with images that are not sampled

As soon as we support shaderStorageImageWriteWithoutFormat we can see
write-only images (sampled == 2) that don't have a format specified.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/spirv_to_nir.c