From 91b3b46d8b5a1928bdea377acc51a3fcc85b498b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 May 2015 12:02:57 -0700 Subject: [PATCH] nir/spirv: Add support for indirect array accesses --- src/glsl/nir/spirv_to_nir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index f36db8a3c27..9c056da897f 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; -- 2.30.2