spirv: Use texture types for sampled images
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 15 Oct 2021 19:15:52 +0000 (14:15 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 16 Oct 2021 05:49:34 +0000 (05:49 +0000)
commit5818d47ae661bfc7121a2e6c80d4e5870cf5fe8c
treec28909e666bcb2fa31c4cd6cbab63f3f9cc03a40
parent99cda38c81691e508a5707c3ff0c2e506809b45d
spirv: Use texture types for sampled images

Instead of using gsamplerND types for sampled images, use the new
gtextureND types for sampled images and reserve gsamplerND for combined
image+samplers.  Combined image+sampler bindings still get a gsamplerND
type.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13389>
src/compiler/nir/nir_lower_readonly_images_to_tex.c
src/compiler/spirv/spirv_to_nir.c