summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.c
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2015-03-13 11:37:03 -0700
committerJordan Justen <[email protected]>2015-09-13 09:53:16 -0700
commit4f178f0d8b7b4c410a1ac5532a26dfa51d3a72f1 (patch)
treea63349833a11285cba4f7d41a5a13a5112a68851 /src/glsl/nir/nir.c
parentf5bb5a1bf180b80a4fee12d60e97ac4c6f80876c (diff)
nir: Add gl_WorkGroupID system variable
Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r--src/glsl/nir/nir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c
index 1774e1c13f4..96cf94c11d5 100644
--- a/src/glsl/nir/nir.c
+++ b/src/glsl/nir/nir.c
@@ -1459,6 +1459,8 @@ nir_system_value_from_intrinsic(nir_intrinsic_op intrin)
return SYSTEM_VALUE_SAMPLE_MASK_IN;
case nir_intrinsic_load_local_invocation_id:
return SYSTEM_VALUE_LOCAL_INVOCATION_ID;
+ case nir_intrinsic_load_work_group_id:
+ return SYSTEM_VALUE_WORK_GROUP_ID;
/* FINISHME: Add tessellation intrinsics.
return SYSTEM_VALUE_TESS_COORD;
return SYSTEM_VALUE_VERTICES_IN;