[1/4] glsl: Add a SYSTEM_BIT_PRIMITIVE_ID #define.

Submitted by Kenneth Graunke on Feb. 23, 2018, 8:36 a.m.

Details

Message ID 20180223083615.3748-1-kenneth@whitecape.org
State New
Headers show
Series "Series without cover letter" ( rev: 2 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Kenneth Graunke Feb. 23, 2018, 8:36 a.m.
Less typing than ((uint64_t)1 << SYSTEM_VALUE_PRIMITIVE_ID).
---
 src/compiler/shader_enums.h | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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