zink: check the variable mode before taking samplemask path in ntv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 1 Sep 2022 19:21:12 +0000 (15:21 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Sep 2022 22:13:15 +0000 (22:13 +0000)
commit8abbc6b19bb73cd4f36de7461204b06f2afddd8a
tree7fd6bce7e1f589c0bd0328b76f9e724ba8180c20
parente2773d67fe72a67af04b049590baf050124c345c
zink: check the variable mode before taking samplemask path in ntv

this otherwise may break for function temps

cc: mesa-stable

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18375>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c