nir/lower_alu_to_scalar: don't set the nir_builder cursor

This ensures recursive lowering in a single pass.

Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15977>
This commit is contained in:
Daniel Schürmann
2020-07-22 12:23:48 +02:00
committed by Marge Bot
parent 5f09ee77a1
commit 90a0675989

View File

@@ -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))