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 <jonathan@marek.ca> Reviewed-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
57e980a4fb
commit
43dbd7d603
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue