aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2012-03-18 18:13:29 +0100
committerFrancisco Jerez <[email protected]>2012-05-11 12:39:41 +0200
commit581ddbcf93ea8111e71ef43e90fa6937cf46a2cb (patch)
tree4e7550d4d26e1303df6af9d16f09ca62c0e0ed62 /src/gallium/include
parentb8e808f1ef9462af8545999df514fddbbff34345 (diff)
gallium/tgsi: Define system values used to query the compute grid parameters.
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_shader_tokens.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
index d45a914924e..70a3221f8a9 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -158,7 +158,11 @@ struct tgsi_declaration_interp
#define TGSI_SEMANTIC_STENCIL 12
#define TGSI_SEMANTIC_CLIPDIST 13
#define TGSI_SEMANTIC_CLIPVERTEX 14
-#define TGSI_SEMANTIC_COUNT 15 /**< number of semantic values */
+#define TGSI_SEMANTIC_GRID_SIZE 15 /**< grid size in blocks */
+#define TGSI_SEMANTIC_BLOCK_ID 16 /**< id of the current block */
+#define TGSI_SEMANTIC_BLOCK_SIZE 17 /**< block size in threads */
+#define TGSI_SEMANTIC_THREAD_ID 18 /**< block-relative id of the current thread */
+#define TGSI_SEMANTIC_COUNT 19 /**< number of semantic values */
struct tgsi_declaration_semantic
{