vc4: Use nir_lower_load_const_to_scalar().
authorEric Anholt <eric@anholt.net>
Tue, 4 Aug 2015 00:36:47 +0000 (17:36 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 5 Aug 2015 03:03:15 +0000 (20:03 -0700)
src/gallium/drivers/vc4/vc4_program.c

index 307667e23c831d2b3674ddd12a99738d092e95fb..e9120b7a1ff01f88b4ce24635d788bf778c98468 100644 (file)
@@ -2032,6 +2032,7 @@ vc4_shader_ntq(struct vc4_context *vc4, enum qstage stage,
         nir_convert_to_ssa(c->s);
         vc4_nir_lower_io(c);
         nir_lower_idiv(c->s);
+        nir_lower_load_const_to_scalar(c->s);
 
         vc4_optimize_nir(c->s);