OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Aug 2017 23:19:06 +0000 (00:19 +0100)
commit29e816b9f2e715a049b464da034b88d440e83641
tree3053640a905e684d88e43e298371350b84652105
parent6e41999f94605610d5f978262fe691471b68ccde
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
(cherry picked from commit ecf91898e0a8e144adb82d72aecf1224e77ee31b)
src/compiler/nir/nir_lower_vars_to_ssa.c