[Mesa-dev] [PATCH 1/4] glsl: Add a SYSTEM_BIT_PRIMITIVE_ID #define.

Kenneth Graunke kenneth at whitecape.org
Fri Feb 23 08:36:12 UTC 2018


Less typing than ((uint64_t)1 << SYSTEM_VALUE_PRIMITIVE_ID).
---
 src/compiler/shader_enums.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h
index ac83c65b30c..33a9d3d8a1d 100644
--- a/src/compiler/shader_enums.h
+++ b/src/compiler/shader_enums.h
@@ -332,6 +332,7 @@ const char *gl_varying_slot_name(gl_varying_slot slot);
 #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)
+#define SYSTEM_BIT_PRIMITIVE_ID ((uint64_t)1 << SYSTEM_VALUE_PRIMITIVE_ID)
 
 /**
  * If the gl_register_file is PROGRAM_SYSTEM_VALUE, the register index will be
-- 
2.16.1



More information about the mesa-dev mailing list