nir/propagate_invariant: Skip unknown vars
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Dec 2018 20:06:48 +0000 (14:06 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 18 Dec 2018 19:13:28 +0000 (13:13 -0600)
commit8410cf66d776aa832f666bc50dad460dd577bf27
treedfbadda8bbd540e39f57abde9605fc0db9ad579d
parent29e4b949b45b468c366b9865298391c89ba6642c
nir/propagate_invariant: Skip unknown vars

If we can't find the variable from the deref, just assume it isn't
invariant and continue on.  This can happen if, for instance, we're
writing to a deref that points into an SSBO.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_propagate_invariant.c