diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 0a48d0905f3..2201522618d 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -2775,7 +2775,6 @@ bi_optimize_nir(nir_shader *nir) unsigned lower_flrp = 16 | 32 | 64; NIR_PASS(progress, nir, nir_lower_regs_to_ssa); - NIR_PASS(progress, nir, nir_lower_idiv, nir_lower_idiv_fast); nir_lower_tex_options lower_tex_options = { .lower_txs_lod = true, @@ -2790,6 +2789,8 @@ bi_optimize_nir(nir_shader *nir) NIR_PASS(progress, nir, nir_lower_int64); + NIR_PASS(progress, nir, nir_lower_idiv, nir_lower_idiv_fast); + NIR_PASS(progress, nir, nir_lower_tex, &lower_tex_options); NIR_PASS(progress, nir, nir_lower_alu_to_scalar, NULL, NULL); NIR_PASS(progress, nir, nir_lower_load_const_to_scalar);