summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-08-03 17:36:47 -0700
committerEric Anholt <[email protected]>2015-08-04 20:03:15 -0700
commitee47d13abbc6770b4e6513c894ede56b1e846785 (patch)
tree6dc386785ebed3c495060a80a068b1fdfd3d3b31 /src
parent6c28ee20410afe97dd441b0c9c680b26eb4072fc (diff)
vc4: Use nir_lower_load_const_to_scalar().
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 307667e23c8..e9120b7a1ff 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -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);