diff options
author | Kenneth Graunke <[email protected]> | 2016-03-13 00:08:56 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-05-07 15:44:41 -0700 |
commit | 742bc53d040632fd98fac8930e4e8749f5c430e2 (patch) | |
tree | 3c06ff6686a825782b97eee2eda64981aba4b720 /doxygen/math.doxy | |
parent | 1896682d272c762b4dd5643a27d98b87a966b792 (diff) |
spirv: Fix structure splitting with per-vertex interface arrays.
We want to use interface_type, not vtn_var->type. They're normally
equivalent, but for geometry/tessellation per-vertex interface arrays,
we need to unwrap a level.
Otherwise, we tried to iterate a structure members but instead used
an array length. If the array length was longer than the number of
fields in the structure, we'd crash.
Fixes the CreatePipelineGeometryInputBlockPositive layer validation
test.
v2: Just use glsl_without_array() on the vtn_var type
(requested by Jason Ekstrand).
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'doxygen/math.doxy')
0 files changed, 0 insertions, 0 deletions