nir: Introduce workgroup_index and ability to lower workgroup_id to it.
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. In this case, we can use lower the 3D ID to use this. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15103>
This commit is contained in:
@@ -766,6 +766,7 @@ typedef enum
|
||||
SYSTEM_VALUE_BASE_GLOBAL_INVOCATION_ID,
|
||||
SYSTEM_VALUE_GLOBAL_INVOCATION_INDEX,
|
||||
SYSTEM_VALUE_WORKGROUP_ID,
|
||||
SYSTEM_VALUE_WORKGROUP_INDEX,
|
||||
SYSTEM_VALUE_NUM_WORKGROUPS,
|
||||
SYSTEM_VALUE_WORKGROUP_SIZE,
|
||||
SYSTEM_VALUE_GLOBAL_GROUP_SIZE,
|
||||
|
Reference in New Issue
Block a user