nir/vtn: Add type constant to image intrinsics
authorJesse Natalie <jenatali@microsoft.com>
Mon, 13 Apr 2020 14:50:37 +0000 (07:50 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 21:17:38 +0000 (21:17 +0000)
commitce6f66242ad33be84c0a34519f18bdc15c195950
tree4bfc8c2b965159a0f18e9b56dbfa556fa5c3d0f2
parent865a2ad0866e271adda3cd18c46f74514131da11
nir/vtn: Add type constant to image intrinsics

Since OpenCL supports untyped images, backends might need type info
to be able to support the load/store ops.

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