spirv: Refactor Op[Spec]ConstantComposite and add better validation
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Dec 2017 06:25:09 +0000 (22:25 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Jan 2018 22:57:44 +0000 (14:57 -0800)
commit936f49268e1a3906130d213fe859b13e85fe0c53
tree7df75cb283b1b2a847c8bd4e46b646d90eb232b8
parentdabce5061d9a49ebbf269d651e086e638be01aa9
spirv: Refactor Op[Spec]ConstantComposite and add better validation

Now that vtn_base_type is a real and full base type, we can switch on
that instead of the GLSL base type which is a lot fewer cases in our
switch.

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