Module: Mesa Branch: master Commit: bf6fd9a2eb76f0148d18222b68548fc3e24bc089 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf6fd9a2eb76f0148d18222b68548fc3e24bc089
Author: Dave Airlie <[email protected]> Date: Fri Mar 19 12:04:11 2021 +1000 gallivm: add subgroup lowering support Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9645> --- src/gallium/auxiliary/gallivm/lp_bld_nir.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index c194290b2bc..c1581ba6a84 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -2317,6 +2317,15 @@ void lp_build_opt_nir(struct nir_shader *nir) nir_lower_tex_options options = { .lower_tex_without_implicit_lod = true }; NIR_PASS_V(nir, nir_lower_tex, &options); + + const nir_lower_subgroups_options subgroups_options = { + .subgroup_size = lp_native_vector_width / 32, + .ballot_bit_size = 32, + .lower_to_scalar = true, + .lower_subgroup_masks = true, + }; + NIR_PASS_V(nir, nir_lower_subgroups, &subgroups_options); + } while (progress); nir_lower_bool_to_int32(nir); } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
