[Mesa-dev] [PATCH 01/12] nir/lower_vars_to_ssa: Actually look for indirects when determining aliasing
Jason Ekstrand
jason at jlekstrand.net
Fri Apr 10 17:48:44 PDT 2015
---
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 2ca74d7..8b7261c 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.3.5
More information about the mesa-dev
mailing list