Mesa (main): nir/lower_alu_to_scalar: don't set the nir_builder cursor

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 20 18:43:16 UTC 2022


Module: Mesa
Branch: main
Commit: 90a0675989b86ff00b8e517e9fc184d35517692c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=90a0675989b86ff00b8e517e9fc184d35517692c

Author: Daniel Schürmann <daniel at schuermann.dev>
Date:   Wed Jul 22 12:23:48 2020 +0200

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 at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15977>

---

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



More information about the mesa-commit mailing list