nir: Accept nir_var_mem_global in derefs used by phis
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 30 May 2019 20:49:19 +0000 (13:49 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 30 May 2019 21:07:29 +0000 (14:07 -0700)
commit03ce12c5ed7d1225d5aad8c10fccab2503920ec0
treec4125ca1dd673f6d654a60601b036ec90f5e1a86
parent5e43a75950e8562e65cb2d1d1f07781300a29d4f
nir: Accept nir_var_mem_global in derefs used by phis

This mode is used by PhysicalStorageBufferEXT storage class.

Fixes: 8bdf5a008b3 "nir: Allow derefs to be used as phi sources"
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/nir/nir_validate.c