nir: document base_global_invocation_id and base_workgroup_id

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26800>
This commit is contained in:
Karol Herbst 2024-04-24 10:17:21 +02:00 committed by Marge Bot
parent d22f936019
commit 5e1a988003

View file

@ -891,6 +891,7 @@ system_value("workgroup_id", 3)
# The workgroup_index is intended for situations when a 3 dimensional
# workgroup_id is not available on the HW, but a 1 dimensional index is.
system_value("workgroup_index", 1)
# API specific base added to the workgroup_id, e.g. baseGroup* of vkCmdDispatchBase
system_value("base_workgroup_id", 3, bit_sizes=[32, 64])
system_value("user_clip_plane", 4, indices=[UCP_ID])
system_value("num_workgroups", 3)
@ -927,6 +928,8 @@ system_value("workgroup_size", 3)
# note: the definition of global_invocation_id is based on
# ((workgroup_id + base_workgroup_id) * workgroup_size) + local_invocation_id.
system_value("global_invocation_id", 3, bit_sizes=[32, 64])
# API specific base added to the global_invocation_id
# e.g. global_work_offset of clEnqueueNDRangeKernel
system_value("base_global_invocation_id", 3, bit_sizes=[32, 64])
system_value("global_invocation_index", 1, bit_sizes=[32, 64])
system_value("work_dim", 1)