From: Lionel Landwerlin Date: Wed, 15 May 2019 18:09:36 +0000 (+0100) Subject: nir: fix lower_non_uniform_access pass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=391a836e8fb1c84170f3aa7550f0b347d31528f3;p=mesa.git 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 --- 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; }