spirv/nir: Add some useful asserts for type decorations
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 5 Jul 2017 22:30:22 +0000 (15:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 18 Jul 2017 16:43:12 +0000 (09:43 -0700)
commita96888923758475e1396a21bf70f9fc3390e76ec
tree7edee8414e5e3f0a2e5b23c8c301a9fda1334211
parent999918bd01c624bc865b0d90a63fd1098b0abcdb
spirv/nir: Add some useful asserts for type decorations

Now that vtn_type has piles of unions, we should assert sanity before
setting fields that may stomp others.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/spirv/spirv_to_nir.c