Commit d22bb10e authored by Caio Oliveira's avatar Caio Oliveira
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"
parent b31a31bb
Pipeline #39606 failed with stages
in 9 minutes and 35 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