From 90a0675989b86ff00b8e517e9fc184d35517692c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Wed, 22 Jul 2020 12:23:48 +0200 Subject: [PATCH] nir/lower_alu_to_scalar: don't set the nir_builder cursor This ensures recursive lowering in a single pass. Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/nir/nir_lower_alu_to_scalar.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compiler/nir/nir_lower_alu_to_scalar.c b/src/compiler/nir/nir_lower_alu_to_scalar.c index a769f0dfd2b..fc9c3f69a34 100644 --- a/src/compiler/nir/nir_lower_alu_to_scalar.c +++ b/src/compiler/nir/nir_lower_alu_to_scalar.c @@ -150,7 +150,6 @@ lower_alu_instr_scalar(nir_builder *b, nir_instr *instr, void *_data) assert(alu->dest.dest.is_ssa); assert(alu->dest.write_mask != 0); - b->cursor = nir_before_instr(&alu->instr); b->exact = alu->exact; if (data->cb && !data->cb(instr, data->data))