From 0667962103034d7426c763a7793ce22baab46c8e Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 11 Aug 2015 11:47:46 -0400 Subject: [PATCH] freedreno/ir3: use nir pass to lower const to scalar Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2