From: Jason Ekstrand Date: Fri, 10 Apr 2015 03:45:45 +0000 (-0700) Subject: nir/lower_vars_to_ssa: Actually look for indirects when determining aliasing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73cc76362dd93a2b8b35583cc12cc3a61a61ea83;p=mesa.git nir/lower_vars_to_ssa: Actually look for indirects when determining aliasing Reviewed-by: Connor Abbott --- diff --git a/src/glsl/nir/nir_lower_vars_to_ssa.c b/src/glsl/nir/nir_lower_vars_to_ssa.c index 2ca74d71bc2..8b7261c937e 100644 --- a/src/glsl/nir/nir_lower_vars_to_ssa.c +++ b/src/glsl/nir/nir_lower_vars_to_ssa.c @@ -317,6 +317,10 @@ deref_may_be_aliased_node(struct deref_node *node, nir_deref *deref, if (arr->deref_array_type == nir_deref_array_type_indirect) return true; + /* If there is an indirect at this level, we're aliased. */ + if (node->indirect) + return true; + assert(arr->deref_array_type == nir_deref_array_type_direct); if (node->children[arr->base_offset] &&