Module: Mesa
Branch: master
Commit: 70c6bff2f01620bf10258067b6e2ef4ac0959f53
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=70c6bff2f01620bf10258067b6e2ef4ac0959f53

Author: Karol Herbst <[email protected]>
Date:   Sat Nov  9 02:13:25 2019 +0100

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]>

---

 src/compiler/nir/nir_deref.c | 1 +
 1 file changed, 1 insertion(+)

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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to