mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
nir/spirv: Add support for indirect array accesses
This commit is contained in:
parent
9197e3b9fc
commit
91b3b46d8b
1 changed files with 2 additions and 2 deletions
|
|
@ -595,8 +595,8 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
|
|||
} else {
|
||||
assert(idx_val->value_type == vtn_value_type_ssa);
|
||||
deref_arr->deref_array_type = nir_deref_array_type_indirect;
|
||||
/* TODO */
|
||||
unreachable("Indirect array accesses not implemented");
|
||||
deref_arr->base_offset = 0;
|
||||
deref_arr->indirect = nir_src_for_ssa(vtn_ssa_value(b, w[1]));
|
||||
}
|
||||
tail->child = &deref_arr->deref;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue