From: Rob Clark Date: Tue, 11 Aug 2015 15:47:46 +0000 (-0400) Subject: freedreno/ir3: use nir pass to lower const to scalar X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0667962103034d7426c763a7793ce22baab46c8e;p=mesa.git freedreno/ir3: use nir pass to lower const to scalar Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c index 53faf16ae30..0ab33455ed1 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c @@ -149,6 +149,7 @@ static struct nir_shader *to_nir(const struct tgsi_token *tokens) nir_opt_global_to_local(s); nir_convert_to_ssa(s); nir_lower_idiv(s); + nir_lower_load_const_to_scalar(s); do { progress = false;