mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 16:50:13 +01:00
nak: Call nir_lower_subgroups()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
bf8642e984
commit
ce40d81d46
1 changed files with 13 additions and 0 deletions
|
|
@ -215,6 +215,19 @@ nak_preprocess_nir(nir_shader *nir, const struct nak_compiler *nak)
|
|||
OPT(nir, nir_lower_var_copies);
|
||||
OPT(nir, nir_lower_system_values);
|
||||
OPT(nir, nir_lower_compute_system_values, NULL);
|
||||
|
||||
const nir_lower_subgroups_options subgroups_options = {
|
||||
.subgroup_size = 32,
|
||||
.ballot_bit_size = 32,
|
||||
.ballot_components = 1,
|
||||
.lower_to_scalar = true,
|
||||
.lower_vote_eq = true,
|
||||
.lower_first_invocation_to_ballot = true,
|
||||
.lower_read_first_invocation = true,
|
||||
.lower_elect = true,
|
||||
.lower_inverse_ballot = true,
|
||||
};
|
||||
OPT(nir, nir_lower_subgroups, &subgroups_options);
|
||||
}
|
||||
|
||||
static uint16_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue