[RFC,15/17] eir: make use of eir_nir_lower_alu_to_scalar(..)

Submitted by Christian Gmeiner on May 10, 2019, 9:09 a.m.

Details

Message ID 20190510090915.2739-16-christian.gmeiner@gmail.com
State New
Headers show
Series "An other look at nir" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Christian Gmeiner May 10, 2019, 9:09 a.m.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
---
 src/etnaviv/compiler/eir_nir.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/etnaviv/compiler/eir_nir.c b/src/etnaviv/compiler/eir_nir.c
index 6e75f2c5fd8..a579037a667 100644
--- a/src/etnaviv/compiler/eir_nir.c
+++ b/src/etnaviv/compiler/eir_nir.c
@@ -102,6 +102,8 @@  eir_optimize_nir(struct nir_shader *s)
    OPT_V(s, nir_lower_global_vars_to_local);
    OPT_V(s, nir_lower_regs_to_ssa);
 
+   OPT_V(s, eir_nir_lower_alu_to_scalar);
+
    OPT_V(s, nir_opt_algebraic);
 
    eir_optimize_loop(s);