From bf8d6e501c58b3d6c06056b663ec99b9c7eeb9cf Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Fri, 10 Oct 2014 08:28:24 -0700 Subject: glsl/cs: Add gl_LocalInvocationID variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jordan Justen Reviewed-by: Iago Toral Quiroga Reviewed-by: Kristian Høgsberg --- src/glsl/shader_enums.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/glsl/shader_enums.h') diff --git a/src/glsl/shader_enums.h b/src/glsl/shader_enums.h index 9bb163f3bb0..3b80a1dd4ce 100644 --- a/src/glsl/shader_enums.h +++ b/src/glsl/shader_enums.h @@ -238,6 +238,8 @@ typedef enum #define SYSTEM_BIT_SAMPLE_ID ((uint64_t)1 << SYSTEM_VALUE_SAMPLE_ID) #define SYSTEM_BIT_SAMPLE_POS ((uint64_t)1 << SYSTEM_VALUE_SAMPLE_POS) #define SYSTEM_BIT_SAMPLE_MASK_IN ((uint64_t)1 << SYSTEM_VALUE_SAMPLE_MASK_IN) +#define SYSTEM_BIT_LOCAL_INVOCATION_ID ((uint64_t)1 << SYSTEM_VALUE_LOCAL_INVOCATION_ID) + /** * If the gl_register_file is PROGRAM_SYSTEM_VALUE, the register index will be * one of these values. If a NIR variable's mode is nir_var_system_value, it @@ -363,6 +365,13 @@ typedef enum SYSTEM_VALUE_TESS_LEVEL_INNER, /**< TES input */ /*@}*/ + /** + * \name Compute shader system values + */ + /*@{*/ + SYSTEM_VALUE_LOCAL_INVOCATION_ID, + /*@}*/ + SYSTEM_VALUE_MAX /**< Number of values */ } gl_system_value; -- cgit v1.2.3