mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
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:
parent
1abe0d38d1
commit
ba1ddb6b62
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue