nir: fix packing components with arrays
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 15 Apr 2019 05:00:02 +0000 (15:00 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 15 Apr 2019 09:25:12 +0000 (19:25 +1000)
commit8f74a60c43af119ae751181a58d6c0943c18be30
tree4ed8f255b4a942c7f21f58b619520aa32202929a
parent14f03978ed0e9b10a3f56668bc42dbb39537bb58
nir: fix packing components with arrays

When gathering info for unmovable types we need to handle arrays.
While we dont support packing/moving arrays we do support packing
scalar components with these arrays.

Fixes piglit:
tests/spec/arb_enhanced_layouts/execution/component-layout/vs-fs-array-interleave-range.shader_test

Fixes: 5eb17506e159 ("nir: do not pack varying with different types")

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/compiler/nir/nir_linking_helpers.c