diff options
author | Jason Ekstrand <[email protected]> | 2015-05-04 12:02:57 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-05-16 11:16:33 -0700 |
commit | d2a7972557209cfe47fd1d7325ccbca8b3b844a5 (patch) | |
tree | cb376a3e52b37bc534ffb0c75a140d13d4853acd /src | |
parent | 683c99908aa3560722614bee6b61969f08cf0616 (diff) |
nir/spirv: Add support for indirect array accesses
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/nir/spirv_to_nir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index 4d425c9a846..3f8ce2af10e 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -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; |