spirv: Do more complex unwrapping in get_nir_type
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 24 Jul 2020 15:46:20 +0000 (10:46 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 4 Aug 2020 03:05:34 +0000 (03:05 +0000)
commit4816f6f8d88f4f9004416b8cebccdddbe24ca95b
treecc157e3f196af711e37cc15fb603a2fdd5ebdccd
parent140a5492e0493d516b76ea7740c92516c91bf874
spirv: Do more complex unwrapping in get_nir_type

The OpenGL flavor of SPIR-V allows for samplers inside structs.  This
means that our simple array-of-array handling isn't sufficient and we
need something substantially more complex for generating NIR types.

Fixes: 14a12b771d0 "spirv: Rework our handling of images and samplers"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6065>
src/compiler/spirv/spirv_to_nir.c