spirv: Make sampled images a real type
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 8 Dec 2017 07:42:13 +0000 (23:42 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Dec 2017 15:34:46 +0000 (07:34 -0800)
commitaaeda8d7d4e78e9f9fb63c3ec6879a436871f51e
treec70e1b24e5a1f5fbd7493a7b5af19e0769cc7887
parentec0a4fcec03cacfc3e075cf9e5e6584b672e4c82
spirv: Make sampled images a real type

Previously, we just gave them exactly the same type as the respective
image (which already had a sampler2D or similar type).  Now they have
their own base type and a pointer to the vtn_type for the image.
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h