Commit 03ce12c5 authored by Caio Marcelo de Oliveira Filho's avatar Caio Marcelo de Oliveira Filho
Browse files

nir: Accept nir_var_mem_global in derefs used by phis

This mode is used by PhysicalStorageBufferEXT storage class.

Fixes: 8bdf5a00

 "nir: Allow derefs to be used as phi sources"
Reviewed-by: Bas Nieuwenhuizen's avatarBas Nieuwenhuizen <>
parent 5e43a759
Pipeline #39611 passed with stages
in 7 minutes and 53 seconds
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment