mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue