aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2019-05-15 19:09:36 +0100
committerLionel Landwerlin <[email protected]>2019-05-15 18:15:20 +0000
commit391a836e8fb1c84170f3aa7550f0b347d31528f3 (patch)
tree80bad272149d11c7de915b82318d9d25772669f0 /src/compiler
parentb2200514af1ce22da9b0dcc0ca5e24731badd192 (diff)
nir: fix lower_non_uniform_access pass
Obviously missing the instruction insertion into the SSA list. Signed-off-by: Lionel Landwerlin <[email protected]> Fixes: 3bd545764151 ("nir: Add a lowering pass for non-uniform resource access") Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_lower_non_uniform_access.c1
1 files changed, 1 insertions, 0 deletions
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;
}