summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-12-14 20:20:58 -0800
committerJason Ekstrand <[email protected]>2015-12-15 10:20:23 -0800
commit630b9528b36baf0efc35f461ce69338ba5930e5a (patch)
treec3ff097a84e2f5053637a4e1e8bf1e1de60ff5aa /src/glsl
parent7ebd84fa4b1d7d4a8eac6d4d9ef2ab507650ec23 (diff)
shader_enums: Add enums for gl_GlobalInvocationID and gl_LocalInvocationIndex
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/shader_enums.c2
-rw-r--r--src/glsl/nir/shader_enums.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/nir/shader_enums.c b/src/glsl/nir/shader_enums.c
index 66a25e72344..f1dbe0158ab 100644
--- a/src/glsl/nir/shader_enums.c
+++ b/src/glsl/nir/shader_enums.c
@@ -172,6 +172,8 @@ const char * gl_system_value_name(gl_system_value sysval)
ENUM(SYSTEM_VALUE_TESS_LEVEL_OUTER),
ENUM(SYSTEM_VALUE_TESS_LEVEL_INNER),
ENUM(SYSTEM_VALUE_LOCAL_INVOCATION_ID),
+ ENUM(SYSTEM_VALUE_LOCAL_INVOCATION_INDEX),
+ ENUM(SYSTEM_VALUE_GLOBAL_INVOCATION_ID),
ENUM(SYSTEM_VALUE_WORK_GROUP_ID),
ENUM(SYSTEM_VALUE_NUM_WORK_GROUPS),
ENUM(SYSTEM_VALUE_VERTEX_CNT),
diff --git a/src/glsl/nir/shader_enums.h b/src/glsl/nir/shader_enums.h
index dd0e0bad806..6f4a47dbd18 100644
--- a/src/glsl/nir/shader_enums.h
+++ b/src/glsl/nir/shader_enums.h
@@ -415,6 +415,8 @@ typedef enum
*/
/*@{*/
SYSTEM_VALUE_LOCAL_INVOCATION_ID,
+ SYSTEM_VALUE_LOCAL_INVOCATION_INDEX,
+ SYSTEM_VALUE_GLOBAL_INVOCATION_ID,
SYSTEM_VALUE_WORK_GROUP_ID,
SYSTEM_VALUE_NUM_WORK_GROUPS,
/*@}*/