From: Jason Ekstrand Date: Tue, 31 May 2016 22:02:10 +0000 (-0700) Subject: nir/lower_indirect_derefs: Use the direct array deref for recursion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45542f554ca01b00b3d4674cf90575dff7904736;p=mesa.git 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" --- 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;