From 07f5e621cfd98f267f2a996fea0159887cecc930 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 31 May 2016 15:02:10 -0700 Subject: nir/lower_indirect_derefs: Use the direct array deref for recursion This fixes about 100 of the new Vulkan CTS tests. Signed-off-by: Jason Ekstrand Reviewed-by: Kenneth Graunke Cc: "12.0" (cherry picked from commit 45542f554ca01b00b3d4674cf90575dff7904736) --- src/compiler/nir/nir_lower_indirect_derefs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/compiler/nir/nir_lower_indirect_derefs.c b/src/compiler/nir/nir_lower_indirect_derefs.c index 694a6e0f3d7..1bf4bf66795 100644 --- a/src/compiler/nir/nir_lower_indirect_derefs.c +++ b/src/compiler/nir/nir_lower_indirect_derefs.c @@ -50,7 +50,7 @@ emit_indirect_load_store(nir_builder *b, nir_intrinsic_instr *orig_instr, direct.indirect = NIR_SRC_INIT; arr_parent->child = &direct.deref; - emit_load_store(b, orig_instr, deref, &arr->deref, dest, src); + emit_load_store(b, orig_instr, deref, &direct.deref, dest, src); arr_parent->child = &arr->deref; } else { int mid = start + (end - start) / 2; -- cgit v1.2.3