Mesa (master): broadcom/vc5: Start using nir_opt_move_load_ubo().

Eric Anholt anholt at kemper.freedesktop.org
Thu Mar 29 00:49:05 UTC 2018


Module: Mesa
Branch: master
Commit: 81f82ecc56c3ac6f40389977e316381928391755
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81f82ecc56c3ac6f40389977e316381928391755

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Mar 28 11:19:35 2018 -0700

broadcom/vc5: Start using nir_opt_move_load_ubo().

In the absence of a general NIR or VIR-level scheduler, this at least
avoids spilling in
GTF-GLES3.gtf.GL3Tests.uniform_buffer_object.uniform_buffer_object_storage_layouts

---

 src/broadcom/compiler/nir_to_vir.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c
index 893dfa160a..5171000178 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -1202,6 +1202,8 @@ v3d_optimize_nir(struct nir_shader *s)
                 NIR_PASS(progress, s, nir_opt_constant_folding);
                 NIR_PASS(progress, s, nir_opt_undef);
         } while (progress);
+
+        NIR_PASS(progress, s, nir_opt_move_load_ubo);
 }
 
 static int




More information about the mesa-commit mailing list