spirv: Only split blocks
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Jan 2019 17:52:03 +0000 (11:52 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Jan 2019 16:42:56 +0000 (10:42 -0600)
commitda2959463616756e89cece39f2bae1d437df4bbd
treef3160e2ca4da31ea5d505cf7e5dacbcb766852ad
parent662cfb121bd3206c6a6de64de419349184984a9d
spirv: Only split blocks

Instead of splitting every per-vertex struct, just split the ones that
are actually blocks.  The reason for the split is so that we have
separate variables for separate locations, qualifiers, and builtin
decorations.  The vulkan spec only allows these on members of blocks.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/spirv/vtn_variables.c