From 391a836e8fb1c84170f3aa7550f0b347d31528f3 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 15 May 2019 19:09:36 +0100 Subject: nir: fix lower_non_uniform_access pass Obviously missing the instruction insertion into the SSA list. Signed-off-by: Lionel Landwerlin Fixes: 3bd545764151 ("nir: Add a lowering pass for non-uniform resource access") Reviewed-by: Jason Ekstrand --- src/compiler/nir/nir_lower_non_uniform_access.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/compiler') diff --git a/src/compiler/nir/nir_lower_non_uniform_access.c b/src/compiler/nir/nir_lower_non_uniform_access.c index 6aa11f9bebe..b2bdb4dd412 100644 --- a/src/compiler/nir/nir_lower_non_uniform_access.c +++ b/src/compiler/nir/nir_lower_non_uniform_access.c @@ -34,6 +34,7 @@ read_first_invocation(nir_builder *b, nir_ssa_def *x) first->src[0] = nir_src_for_ssa(x); nir_ssa_dest_init(&first->instr, &first->dest, x->num_components, x->bit_size, NULL); + nir_builder_instr_insert(b, &first->instr); return &first->dest.ssa; } -- cgit v1.2.3