diff options
Diffstat (limited to 'src/panfrost/bifrost/bifrost_compile.c')
-rw-r--r-- | src/panfrost/bifrost/bifrost_compile.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index e76fe4cd8a9..d41c17f3c42 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -2864,8 +2864,12 @@ bi_optimize_nir(nir_shader *nir) /* Backend scheduler is purely local, so do some global optimizations * to reduce register pressure */ - NIR_PASS_V(nir, nir_opt_sink, nir_move_const_undef); - NIR_PASS_V(nir, nir_opt_move, nir_move_const_undef); + nir_move_options move_all = + nir_move_const_undef | nir_move_load_ubo | nir_move_load_input | + nir_move_comparisons | nir_move_copies | nir_move_load_ssbo; + + NIR_PASS_V(nir, nir_opt_sink, move_all); + NIR_PASS_V(nir, nir_opt_move, move_all); NIR_PASS(progress, nir, nir_lower_load_const_to_scalar); |