nir: Collect if shader uses cross-invocation or indirect I/O.