freedreno/a3xx+a4xx: add support for vtxcnt semantic
[mesa.git] / src / gallium / drivers / freedreno / ir3 / ir3_shader.h
index ef16d7b2f6e66618c44dba241b219c34ae253d10..f0af4478109bf8cc4a610006bc53cbb1b6fa3c34 100644 (file)
 #include "ir3.h"
 #include "disasm.h"
 
+/* internal semantic used for passing vtxcnt to vertex shader to
+ * implement transform feedback:
+ */
+#define IR3_SEMANTIC_VTXCNT (TGSI_SEMANTIC_COUNT + 0)
+
 typedef uint16_t ir3_semantic;  /* semantic name + index */
 static inline ir3_semantic
 ir3_semantic_name(uint8_t name, uint16_t index)