broadcom/vc5: Start using nir_opt_move_load_ubo().
authorEric Anholt <eric@anholt.net>
Wed, 28 Mar 2018 18:19:35 +0000 (11:19 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 29 Mar 2018 00:48:41 +0000 (17:48 -0700)
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

index 893dfa160aa1216c372ef5356d0d38bd500545aa..51710001784a8d8ddc750beecc5550a2ef079e50 100644 (file)
@@ -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