Mesa (staging/22.1): lavapipe: lower quad_broadcast intrinsics
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 5 17:57:46 UTC 2022
Module: Mesa
Branch: staging/22.1
Commit: 887502682327e57919bc00527d101cb7df8987c1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=887502682327e57919bc00527d101cb7df8987c1
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue May 3 11:01:05 2022 -0400
lavapipe: lower quad_broadcast intrinsics
not supported by gallivm
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16301>
---
src/gallium/frontends/lavapipe/lvp_pipeline.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gallium/frontends/lavapipe/lvp_pipeline.c b/src/gallium/frontends/lavapipe/lvp_pipeline.c
index 81d5a9c32a9..78bd0bc5c96 100644
--- a/src/gallium/frontends/lavapipe/lvp_pipeline.c
+++ b/src/gallium/frontends/lavapipe/lvp_pipeline.c
@@ -900,6 +900,12 @@ lvp_shader_compile_to_ir(struct lvp_pipeline *pipeline,
}
assert(exec_list_length(&nir->functions) == 1);
+ struct nir_lower_subgroups_options subgroup_opts = {0};
+ subgroup_opts.lower_quad = true;
+ subgroup_opts.ballot_components = 4;
+ subgroup_opts.ballot_bit_size = 32;
+ NIR_PASS_V(nir, nir_lower_subgroups, &subgroup_opts);
+
NIR_PASS_V(nir, nir_lower_variable_initializers, ~0);
NIR_PASS_V(nir, nir_split_var_copies);
NIR_PASS_V(nir, nir_split_per_member_structs);
More information about the mesa-commit
mailing list