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:

committed by
Marge Bot

parent
5f09ee77a1
commit
90a0675989
@@ -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))
|
||||
|
Reference in New Issue
Block a user