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>
This commit is contained in:
Jesse Natalie
2020-04-13 08:05:13 -07:00
committed by Marge Bot
parent ce6f66242a
commit de36b5b805
4 changed files with 54 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ struct spirv_supported_capabilities {
bool int64_atomics;
bool integer_functions2;
bool kernel;
bool kernel_image;
bool min_lod;
bool multiview;
bool physical_storage_buffer_address;