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:
@@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user