glsl/shader_enums: Add the other two compute builtins
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 25 Mar 2016 17:51:23 +0000 (10:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 11 Apr 2016 20:53:00 +0000 (13:53 -0700)
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>
src/compiler/shader_enums.c
src/compiler/shader_enums.h

index 003ad3b8ab662b5b492c48086ba9fef1d2560bf0..ff2f564dc986ce5d0dbea78c32dbc17fbcb5b9fc 100644 (file)
@@ -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),
index 0c43d5a92cb9a6bbaff69db3162e4db7cd84a06a..0c2740866fd6a0887088a49a69e2eaee13b599c2 100644 (file)
@@ -459,6 +459,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,
    /*@}*/