mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 00:30:44 +01:00
nir/lower_vars_to_ssa: Actually look for indirects when determining aliasing
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
734bceed86
commit
73cc76362d
1 changed files with 4 additions and 0 deletions
|
|
@ -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] &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue