zink: use type of src[0] for ntv store and load ops
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 17 Jun 2020 19:06:27 +0000 (15:06 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 21:13:45 +0000 (21:13 +0000)
commitd4f4546ada7417b0164ceb4f93a652a41438b15b
treea021f166635d6d9bf387b27f7d4bdfcff22022ae
parent359c9384837f332edb3140f43675c761341b8bcd
zink: use type of src[0] for ntv store and load ops

in some cases (e.g., gl_ClipDistance) the nir_variable type doesn't match
the needed destination type, so we can simplify this code to just use
the destination type

fixes spec@glsl-1.10@execution@interpolation@interpolation-none-gl_backcolor-smooth-vertex

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5852>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c