aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-11-09 02:13:25 +0100
committerKarol Herbst <[email protected]>2019-12-11 23:54:39 +0000
commit70c6bff2f01620bf10258067b6e2ef4ac0959f53 (patch)
tree1f18878ddea684abf9798b5ec8b672263ec4e578 /src/compiler
parentddb9701a3c685dd4e330e236595b64b1e72ed163 (diff)
nir: handle nir_deref_type_ptr_as_array in rematerialize_deref_in_block
I forgot why that was required, but it still is the correct thing to do. Hit it at some point when working on implementing more CL features. Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_deref.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c
index f8b48946cff..02f77d622bd 100644
--- a/src/compiler/nir/nir_deref.c
+++ b/src/compiler/nir/nir_deref.c
@@ -644,6 +644,7 @@ rematerialize_deref_in_block(nir_deref_instr *deref,
break;
case nir_deref_type_array:
+ case nir_deref_type_ptr_as_array:
assert(!nir_src_as_deref(deref->arr.index));
nir_src_copy(&new_deref->arr.index, &deref->arr.index, new_deref);
break;