nir/vtn: Use return type rather than image type for tex ops
authorJesse Natalie <jenatali@microsoft.com>
Tue, 14 Apr 2020 00:35:04 +0000 (17:35 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 21:17:39 +0000 (21:17 +0000)
commita196f05fc22620be5809f7b28ce7f2671b1ef32c
tree4cc7cce130307b7ccd4433401f91f117029bcdfc
parentde36b5b805be1732e6798afd1a12743df8d32718
nir/vtn: Use return type rather than image type for tex ops

Since OpenCL images don't have types, we can't use the image type here.
Rather than special-casing and only using SPIR-V return type for CL images,
we can just always use the return type to fill out the tex info.

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