nir/spirv: Implement ImageQuerySize for storage iamges
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 22:03:58 +0000 (14:03 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Jan 2016 01:21:05 +0000 (17:21 -0800)
commit56c8a5f2b8863987519d7881c495e3c5b71d21a3
tree9f8db7aa64f0d4aa841bdb30a47fb22526f22e1a
parentbb8cadd169782f463f79c70f5478ccd8f13826da
nir/spirv: Implement ImageQuerySize for storage iamges

SPIR-V only has one ImageQuerySize opcode that has to work for both
textures and storage images.  Therefore, we have to special-case that one a
bit and look at the type of the incoming image handle.
src/glsl/nir/spirv/spirv_to_nir.c