spirv: don't assert with location decorations on non i/o variables
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 13 Jan 2017 16:08:28 +0000 (16:08 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 20 Jan 2017 21:39:46 +0000 (21:39 +0000)
commit8a28e764d0e28d0d4dfa3b81b89fa3baf30e94f2
treeb4f95a0a52cf1e7982f3d318332eb1d26594c021
parentf57bdd48498f3284447c14c03204ac60e35c5124
spirv: don't assert with location decorations on non i/o variables

Some applications might add location decoration to samplers. Rather
than raising an error it seems it would make more sense to just
discard these decorations.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: 17.0 <mesa-stable@lists.freedesktop.org>
src/compiler/spirv/vtn_variables.c