compiler/spirv: fix image sample queries
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 18 Mar 2021 13:47:54 +0000 (09:47 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Mar 2021 14:16:35 +0000 (14:16 +0000)
commit50881d59e66fbf0be73cf61677754e512956fd84
tree0f4770ae378710942f11a012653903691b7d5f17
parent861c6a86dcdafc7bd8579bc5776fb0eb60c059a8
compiler/spirv: fix image sample queries

this was only implemented for textures (I assume because drivers which implement
the corresponding intrinsic don't support multisampled images), but it's also
used for shader images

Fixes: 22fdb2f8551 ("nir/spirv: Update to the latest revision")

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9682>
src/compiler/spirv/spirv_to_nir.c