spirv: split constant initializers on in/out structs
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 23 Jan 2018 11:20:16 +0000 (12:20 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 6 Feb 2018 06:50:18 +0000 (07:50 +0100)
commitef439a4fdc34749ce73bf44834c55eae9e886ac2
tree2d11ab86221763ccc3ae4d197497c60ec4dfc9cf
parent1d20001d9711a7ea06f42292d3ed545d7ca0f50c
spirv: split constant initializers on in/out structs

The SPIR-V parser splits in/out struct variables and creates
a separate variable for each first-level member of the struct.
When the struct variable has an initializer this means that we also
need to split the initializer.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_variables.c