vulkan/radix_sort: Fix subgroup invocation id

When we have single subgroup within a workgroup, I guess we want to
index invocation within the subgroup, we don't want the ID of subgroup
within local workgroup, since it will be always 0.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36733>
This commit is contained in:
Sagar Ghuge 2025-08-11 20:50:01 -07:00 committed by Marge Bot
parent 1abe0d38d1
commit ba1ddb6b62

View file

@ -328,7 +328,7 @@ void rsBarrier()
uint32_t
invocation_id()
{
return RS_WORKGROUP_SUBGROUPS == 1 ? gl_SubgroupID : gl_LocalInvocationID.x;
return RS_WORKGROUP_SUBGROUPS == 1 ? gl_SubgroupInvocationID : gl_LocalInvocationID.x;
}
//