nir: Add gl_WorkGroupID system variable

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
This commit is contained in:
Jordan Justen
2015-03-13 11:37:03 -07:00
parent f5bb5a1bf1
commit 4f178f0d8b
3 changed files with 6 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ SYSTEM_VALUE(sample_pos, 2)
SYSTEM_VALUE(sample_mask_in, 1)
SYSTEM_VALUE(invocation_id, 1)
SYSTEM_VALUE(local_invocation_id, 3)
SYSTEM_VALUE(work_group_id, 3)
/*
* The format of the indices depends on the type of the load. For uniforms,