From: Eric Anholt Date: Tue, 4 Aug 2015 00:36:47 +0000 (-0700) Subject: vc4: Use nir_lower_load_const_to_scalar(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee47d13abbc6770b4e6513c894ede56b1e846785;p=mesa.git vc4: Use nir_lower_load_const_to_scalar(). --- 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);