mesa/st: do not advertise CL subgroup features on the GL side

Fixes: 2a5227981e ("gallium: add SUBGROUP_FEATURE bits for rotate and rotate_clustered")

Reviewed-by: Marek Olšák <maraeo@gmail.com>
(cherry picked from commit 9fb54a2092)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41269>
This commit is contained in:
Karol Herbst 2026-04-17 13:56:38 +02:00 committed by Eric Engestrom
parent f776afb2db
commit d10e31b725
2 changed files with 3 additions and 2 deletions

View file

@ -4564,7 +4564,7 @@
"description": "mesa/st: do not advertise CL subgroup features on the GL side",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "2a5227981e3634313a9358aa8a9632d924675572",
"notes": null

View file

@ -639,7 +639,8 @@ void st_init_limits(struct pipe_screen *screen,
c->ShaderSubgroupSupportedStages =
mesa_to_gl_stages(screen->caps.shader_subgroup_supported_stages);
c->ShaderSubgroupSupportedFeatures =
screen->caps.shader_subgroup_supported_features;
screen->caps.shader_subgroup_supported_features &
BITFIELD_MASK(PIPE_SHADER_SUBGROUP_NUM_FEATURES);
c->ShaderSubgroupQuadAllStages =
screen->caps.shader_subgroup_quad_all_stages;
}