nir: handle shared pointers in lowering indirect derefs.
authorDave Airlie <airlied@redhat.com>
Mon, 19 Nov 2018 03:54:33 +0000 (13:54 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 19 Nov 2018 19:36:52 +0000 (05:36 +1000)
commitc8a35285f0c8bef8ae70e2eb6d63b3c5cd44f499
tree7a5b31b3e1ac8e867568d64d1475183ac658e309
parent760859cac219d9ea4d29f58351161ea8de0bcc44
nir: handle shared pointers in lowering indirect derefs.

Check if the base ends up with no variable, and continue
if we see that case outside the loop.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_indirect_derefs.c