nir/spirv: Add explicit handling for all decorations

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [intel.com] - 24 May 2016 23:12 UTC

From time to time we have had cases where glslang has added a decoration we don't handle and it has caused problems. This audit ensures that, for every decoration, we either handle it or hit an unreachable() with an accurate description of why we don't have to.

961369d nir/spirv: Add explicit handling for all decorations
src/compiler/spirv/spirv_to_nir.c | 87 ++++++++++++++++++++++++++++++++++--
src/compiler/spirv/vtn_variables.c | 40 +++++++++++------
2 files changed, 110 insertions(+), 17 deletions(-)

Upstream: cgit.freedesktop.org


  • Share