mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
nir/validate: Allow array derefs of vectors for nir_var_mem_global
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
parent
5f5503d498
commit
9839ce8bf9
1 changed files with 2 additions and 1 deletions
|
|
@ -448,7 +448,8 @@ validate_deref_instr(nir_deref_instr *instr, validate_state *state)
|
|||
case nir_deref_type_array_wildcard:
|
||||
if (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) {
|
||||
/* Shared variables and UBO/SSBOs have a bit more relaxed rules
|
||||
* because we need to be able to handle array derefs on vectors.
|
||||
* Fortunately, nir_lower_io handles these just fine.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue