nir: fix lower_non_uniform_access pass
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 15 May 2019 18:09:36 +0000 (19:09 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 15 May 2019 18:15:20 +0000 (18:15 +0000)
Obviously missing the instruction insertion into the SSA list.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 3bd545764151 ("nir: Add a lowering pass for non-uniform resource access")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_non_uniform_access.c

index 6aa11f9bebeef378d7753cb1378cd06c311d58fd..b2bdb4dd412ba2cdc396065db5c6907906873862 100644 (file)
@@ -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;
 }