Skip to content
Closed
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 @@ -16655,6 +16655,14 @@ agx_compile_shader_nir_once(nir_shader *nir, struct agx_shader_key *key,
NIR_PASS(_, nir, nir_opt_dce);
nir_divergence_analysis(nir);
}

bool packed_mux = false;
NIR_PASS(packed_mux, nir, agx_nir_opt_pack_narrow_mux_tree);
if (packed_mux) {
NIR_PASS(_, nir, nir_opt_dce);
NIR_PASS(_, nir, nir_opt_cse);
nir_divergence_analysis(nir);
}
}
}

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 @@ -382,6 +382,7 @@ bool agx_nir_opt_guard_selected_loads(struct nir_shader *shader);
bool agx_nir_opt_forward_merge_loads(struct nir_shader *shader);
bool agx_nir_fold_const_select_alu(struct nir_shader *shader);
bool agx_nir_opt_narrow_u8_fadd_tree(struct nir_shader *shader);
bool agx_nir_opt_pack_narrow_mux_tree(struct nir_shader *shader);

bool agx_nir_is_shared_phase_barrier(struct nir_instr *instr);
bool agx_nir_opt_shared_vec2(struct nir_shader *shader);
Loading