spirv: Rework asserts in var_decoration_cb
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Dec 2017 17:44:59 +0000 (09:44 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Jan 2018 22:57:44 +0000 (14:57 -0800)
commit819adfdfb4601eed9c1642f23efa0c8077213a35
tree1245ee2487bf3c36300b484438e1f2e73d373741
parent71ea4dded503cb68d40a144451bafaa80248c32b
spirv: Rework asserts in var_decoration_cb

Now that higher levels are enforcing decoration sanity, we don't need
the vtn_asserts here.  This function *should* be safe but we still want
a few well-placed regular asserts in case something goes awry.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/spirv/vtn_variables.c