diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-05-30 13:49:19 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-05-30 14:07:29 -0700 |
commit | 03ce12c5ed7d1225d5aad8c10fccab2503920ec0 (patch) | |
tree | c4125ca1dd673f6d654a60601b036ec90f5e1a86 | |
parent | 5e43a75950e8562e65cb2d1d1f07781300a29d4f (diff) |
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 <[email protected]>
-rw-r--r-- | src/compiler/nir/nir_validate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c index 682ed762f57..204cfdbbe3c 100644 --- a/src/compiler/nir/nir_validate.c +++ b/src/compiler/nir/nir_validate.c @@ -505,7 +505,8 @@ validate_deref_instr(nir_deref_instr *instr, validate_state *state) if (use->parent_instr->type == nir_instr_type_phi) { validate_assert(state, instr->mode == nir_var_mem_ubo || instr->mode == nir_var_mem_ssbo || - instr->mode == nir_var_mem_shared); + instr->mode == nir_var_mem_shared || + instr->mode == nir_var_mem_global); } } } |