From 73cc76362dd93a2b8b35583cc12cc3a61a61ea83 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 9 Apr 2015 20:45:45 -0700 Subject: [PATCH] nir/lower_vars_to_ssa: Actually look for indirects when determining aliasing Reviewed-by: Connor Abbott --- src/glsl/nir/nir_lower_vars_to_ssa.c | 4 ++++ 1 file changed, 4 insertions(+) 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] && -- 2.30.2