glsl/cs: Add gl_WorkGroupID variable
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 10 Oct 2014 15:28:24 +0000 (08:28 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 13 Sep 2015 16:53:16 +0000 (09:53 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/builtin_variables.cpp
src/glsl/shader_enums.h

index f185d939444c899ea0d3f1539b1d0242235ebda9..fbcec353a4af96cde8b22ddce7649dea1efad985 100644 (file)
@@ -1055,6 +1055,7 @@ builtin_variable_generator::generate_cs_special_vars()
 {
    add_system_value(SYSTEM_VALUE_LOCAL_INVOCATION_ID, uvec3_t,
                     "gl_LocalInvocationID");
+   add_system_value(SYSTEM_VALUE_WORK_GROUP_ID, uvec3_t, "gl_WorkGroupID");
    /* TODO: finish this. */
 }
 
index 3b80a1dd4cef7509cceb9e2bfb64ee43d1671bf5..7c598b64595de87e181f913e5022ff95b25dd28a 100644 (file)
@@ -370,6 +370,7 @@ typedef enum
     */
    /*@{*/
    SYSTEM_VALUE_LOCAL_INVOCATION_ID,
+   SYSTEM_VALUE_WORK_GROUP_ID,
    /*@}*/
 
    SYSTEM_VALUE_MAX             /**< Number of values */