Skip to content
Open
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
4 changes: 4 additions & 0 deletions src/asahi/compiler/agx_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -22456,6 +22456,10 @@ agx_compile_shader_nir_internal(nir_shader *nir, struct agx_shader_key *key,
NIR_PASS(post_opt_progress, nir, agx_nir_opt_shared_byte_offsets);
bool cse_progress = false;
NIR_PASS(cse_progress, nir, nir_opt_cse);
if (is_agx3b && mesa_shader_stage_is_compute(nir->info.stage) &&
nir->info.shared_size > 0)
NIR_PASS(post_opt_progress, nir,
agx_nir_interleave_disjoint_shared_stores);
if (cse_progress || post_opt_progress)
NIR_PASS(_, nir, nir_opt_dce);
}
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 @@ -124,6 +124,7 @@ struct nir_def *agx_nir_quad_ddy(struct nir_builder *b, struct nir_def *v);
bool agx_nir_lower_shared_element_index(struct nir_shader *s);
bool agx_nir_opt_shared_byte_offsets(struct nir_shader *s);
bool agx_nir_opt_shared_index_reassoc(struct nir_shader *s);
bool agx_nir_interleave_disjoint_shared_stores(struct nir_shader *s);
/* Byte stride of the index immediate of AGX2 I32 lload/lstore, measured on the
* chips with AGX_CAP_FOLD_SHARED_OFFSETS (four 32-bit elements per unit). */
#define G13X_I32_SHARED_INDEX_UNIT_B 16
Expand Down
Loading
Loading