summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-31 15:02:10 -0700
committerEmil Velikov <[email protected]>2016-06-14 15:48:35 +0100
commit07f5e621cfd98f267f2a996fea0159887cecc930 (patch)
treec496d22452f51db19d448b020462cb7697b6eb75 /src
parentd0dddbf4ee091828f2527861ee71f0fe99076746 (diff)
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Cc: "12.0" <[email protected]> (cherry picked from commit 45542f554ca01b00b3d4674cf90575dff7904736)
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_lower_indirect_derefs.c2
1 files changed, 1 insertions, 1 deletions
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;