From: Jonathan Marek Date: Thu, 1 Aug 2019 18:38:18 +0000 (-0400) Subject: freedreno: a2xx: fix order of NIR opts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43dbd7d603a6b2cc91e62d3ecbffe57bebdda2d4;p=mesa.git 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 --- 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);