shader_enums: Add enums for gl_GlobalInvocationID and gl_LocalInvocationIndex
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Dec 2015 04:20:58 +0000 (20:20 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Dec 2015 18:20:23 +0000 (10:20 -0800)
src/glsl/nir/shader_enums.c
src/glsl/nir/shader_enums.h

index 66a25e72344fb373285a26f07929a840daeb1263..f1dbe0158abedee9cd2f8ca0bff08552a83d9d46 100644 (file)
@@ -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),
index dd0e0bad8066e21c865722d3bd0553868b6b83df..6f4a47dbd18e7b9c95fc2676542e66cf155d342f 100644 (file)
@@ -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,
    /*@}*/