nir/spirv: Compact vtn_type
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 29 Jun 2017 17:33:36 +0000 (10:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 5 Jul 2017 22:26:54 +0000 (15:26 -0700)
commitad4519696d07953c16fcc023220a913cf25d3645
tree053a5c60e39661d82dbfb501052229a350e35dd0
parent55da2cfba230f7d9680090bbc754333a53a9bb03
nir/spirv: Compact vtn_type

Use an anonymous union of structs to help keep the structure small and
better organized.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h