mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radeonsi: use nir_opt_uniform_subgroup
Acked-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38902>
This commit is contained in:
parent
ec81337d8d
commit
81245e262f
1 changed files with 8 additions and 0 deletions
|
|
@ -985,6 +985,14 @@ static void run_late_optimization_and_lowering_passes(struct si_nir_shader_ctx *
|
|||
if (nir->info.use_aco_amd)
|
||||
progress |= ac_nir_optimize_uniform_atomics(nir);
|
||||
|
||||
NIR_PASS(progress, nir, nir_opt_uniform_subgroup,
|
||||
&(struct nir_lower_subgroups_options){
|
||||
.subgroup_size = shader->wave_size,
|
||||
.ballot_bit_size = shader->wave_size,
|
||||
.ballot_components = 1,
|
||||
.lower_ballot_bit_count_to_mbcnt_amd = true,
|
||||
});
|
||||
|
||||
NIR_PASS(progress, nir, si_nir_lower_abi, shader, &ctx->args);
|
||||
/* Global access lowering must be called after lowering ABI which emits regular load_global intrinsics. */
|
||||
NIR_PASS(progress, nir, ac_nir_lower_global_access);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue