Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/asahi/compiler/agx_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -10509,6 +10509,11 @@ agx_optimize_nir(nir_shader *nir, bool soft_fault, bool uniform_atomics,
if (jammed)
agx_optimize_loop_nir(nir, m5, g17p, agx3_unroll);

bool interior_unswitched = false;
NIR_PASS(interior_unswitched, nir, agx_nir_opt_unswitch_interior_bounds);
if (interior_unswitched)
agx_optimize_loop_nir(nir, m5, g17p, agx3_unroll);

bool unrolled = false;
NIR_PASS(unrolled, nir, agx_nir_unroll_runtime_loops, m5_unroll_factor,
320, m5_unroll_widest);
Expand Down
1 change: 1 addition & 0 deletions src/asahi/compiler/agx_nir.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ bool agx_nir_fold_m5_offsets(struct nir_shader *shader);
bool agx_nir_unroll_runtime_loops(struct nir_shader *shader, unsigned factor,
unsigned max_instrs, unsigned *widest);
bool agx_nir_opt_unswitch_invariant_if(struct nir_shader *shader);
bool agx_nir_opt_unswitch_interior_bounds(struct nir_shader *shader);
bool agx_nir_unroll_and_jam(struct nir_shader *shader, unsigned factor,
unsigned *widest);
bool agx_nir_opt_u8_absdiff_fp(struct nir_shader *shader);
Expand Down
Loading