summaryrefslogtreecommitdiffstats
path: root/src/compiler/shader_enums.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-03-25 10:51:23 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-11 13:53:00 -0700
commit39103145ffe325c4a1432c07e1ac02b1aef0bae5 (patch)
treeaf2f5104203fde89b640d8b84da013780ad92479 /src/compiler/shader_enums.c
parent22836dbefa8b57fd788adf2693d7aab73c4de16a (diff)
downloadexternal_mesa3d-39103145ffe325c4a1432c07e1ac02b1aef0bae5.zip
external_mesa3d-39103145ffe325c4a1432c07e1ac02b1aef0bae5.tar.gz
external_mesa3d-39103145ffe325c4a1432c07e1ac02b1aef0bae5.tar.bz2
glsl/shader_enums: Add the other two compute builtins
These weren't added before because they are actually calculated values that are computed from other inputs. However, in order to handle them in nir_lower_system_values, it's nice for them to have a cannonical locaiton. Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'src/compiler/shader_enums.c')
-rw-r--r--src/compiler/shader_enums.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c
index 003ad3b..ff2f564 100644
--- a/src/compiler/shader_enums.c
+++ b/src/compiler/shader_enums.c
@@ -215,6 +215,8 @@ 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),