From 43dbd7d603a6b2cc91e62d3ecbffe57bebdda2d4 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Thu, 1 Aug 2019 14:38:18 -0400 Subject: [PATCH] freedreno: a2xx: fix order of NIR opts int_to_float needs to come after bool_to_float, and lower_to_source_mods needs to come after both, since they don't deal wih source mods. Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- src/gallium/drivers/freedreno/a2xx/ir2_nir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c index 95047d903ac..6121627c080 100644 --- a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c +++ b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c @@ -1064,13 +1064,13 @@ ir2_nir_compile(struct ir2_context *ctx, bool binning) /* postprocess */ OPT_V(ctx->nir, nir_opt_algebraic_late); - OPT_V(ctx->nir, nir_lower_to_source_mods, nir_lower_all_source_mods); OPT_V(ctx->nir, nir_copy_prop); OPT_V(ctx->nir, nir_opt_dce); OPT_V(ctx->nir, nir_opt_move_comparisons); - OPT_V(ctx->nir, nir_lower_bool_to_float); OPT_V(ctx->nir, nir_lower_int_to_float); + OPT_V(ctx->nir, nir_lower_bool_to_float); + OPT_V(ctx->nir, nir_lower_to_source_mods, nir_lower_all_source_mods); /* lower to scalar instructions that can only be scalar on a2xx */ OPT_V(ctx->nir, ir2_nir_lower_scalar); -- 2.30.2