nir/spirv: Make unhandled decorations and capabilities non-fatal
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Jun 2016 21:34:15 +0000 (14:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Jun 2016 02:29:28 +0000 (19:29 -0700)
commit62c6e94bd69a1287ebb4908f4ee67b8f730466cc
tree382b558385d97f9a78006aea6a4e7ef0cd3b62c1
parented14d21d04bf5d58cfadac525b8fd17552378507
nir/spirv: Make unhandled decorations and capabilities non-fatal

glslang frequently throw bogus decorations into shaders.  While we are free
to assert-fail, it's a bit nicer to the application to just warn.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c