mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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 <kherbst@redhat.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ddb9701a3c
commit
70c6bff2f0
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue