glsl: Use nir_var_mem_image for images
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 15 Sep 2021 16:41:09 +0000 (11:41 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 Oct 2021 14:58:56 +0000 (14:58 +0000)
commitb8ee37472d3e271fa666d82910588497435a86b7
tree8fae99ec89f580a3c7c3f8e8a0f94786cc830876
parentcfdc7ee066ea86c87d128e68c43ce7103da3ef5a
glsl: Use nir_var_mem_image for images

We don't use it for bindless images because the uniforms in that case
just contain a bindless handle and aren't an actual image.  Bound
images, on the other hand, go in the nir_var_mem_image class.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4743>
src/compiler/glsl/glsl_to_nir.cpp