nir/vars_to_ssa: Handle missing struct members in foreach_deref_node
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 18 Jul 2017 23:50:39 +0000 (16:50 -0700)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 19 Jul 2017 01:06:23 +0000 (11:06 +1000)
commitecf91898e0a8e144adb82d72aecf1224e77ee31b
treed95a77e2b86d8eb5de46f96d7dbefca733283ef1
parentd9015b1eab66afd8c53cbd35e6e946e041848727
nir/vars_to_ssa: Handle missing struct members in foreach_deref_node

This can happen if, for instance, you have an array of structs and there
are both direct and wildcard references to the same struct and some
members only have direct or only have indirect.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Cc: mesa-stable@lists.freedesktop.org
src/compiler/nir/nir_lower_vars_to_ssa.c