Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 8 additions & 0 deletions src/asahi/compiler/agx_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -11314,6 +11314,14 @@ agx_optimize_nir(nir_shader *nir, bool soft_fault, bool uniform_atomics,
!nir->info.shared_element_index_agx;
const bool lower_agx3_compute_shared =
(byte_indices || m5) && vectorize_compute_shared;

{
bool unswitched = false;
NIR_PASS(unswitched, nir, agx_nir_opt_unswitch_affine_bounds);
if (unswitched)
agx_optimize_loop_nir(nir, m5, g17p, agx3b || m5);
}

NIR_PASS(pre_alg_progress, nir, nir_opt_load_store_vectorize,
&(const nir_load_store_vectorize_options){
.modes = nir_var_mem_global | nir_var_mem_constant |
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 @@ -405,3 +405,4 @@ bool agx_nir_opt_u8x4_hsum(struct nir_shader *shader);
bool agx_nir_uniform_unit_global_id(struct nir_shader *nir);
bool agx_nir_opt_uniform_stride_chains(struct nir_shader *shader,
bool no_textures);
bool agx_nir_opt_unswitch_affine_bounds(struct nir_shader *shader);
Loading