nir/lower_io_to_temporaries: don't set compact on shadow vars
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 6 Jul 2017 19:23:33 +0000 (12:23 -0700)
committerConnor Abbott <cwabbott0@gmail.com>
Thu, 13 Jul 2017 21:45:25 +0000 (14:45 -0700)
commit4df93a54f18ff8baca1d7a1b395c1fa70d65a9bb
tree8412235d5749f8a6ecba535e6da764a6a12b8f25
parent99ff7a9f1f08b2e3687946dec09b2c010540fa1d
nir/lower_io_to_temporaries: don't set compact on shadow vars

The compact flag doesn't make sense on local variables, since the
packing on them is up to the driver. This fixes nir_validate assertions
in some cases, particularly when lower_io_to_temporaries is used on
per-vertex inputs/outputs.

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