nir/vtn: Add support for kernel images to SPIRV-to-NIR.
authorJesse Natalie <jenatali@microsoft.com>
Mon, 13 Apr 2020 15:05:13 +0000 (08:05 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 21:17:39 +0000 (21:17 +0000)
commitde36b5b805be1732e6798afd1a12743df8d32718
tree65f229917f44e7730e8f9cab81472a26011a9808
parentce6f66242ad33be84c0a34519f18bdc15c195950
nir/vtn: Add support for kernel images to SPIRV-to-NIR.

There's a few quirks: kernel images are untyped, whether they're
sampled is unknown, and they're passed as inputs to the kernel even though
SPIR-V declares their address space as UniformConstant.

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