summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h
index dab572c9d37..738ddf65b57 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -122,6 +122,10 @@ enum {
/* PS only */
SI_SGPR_ALPHA_REF = SI_NUM_RESOURCE_SGPRS,
SI_PS_NUM_USER_SGPR,
+
+ /* CS only */
+ SI_SGPR_GRID_SIZE = SI_NUM_RESOURCE_SGPRS,
+ SI_CS_NUM_USER_SGPR = SI_SGPR_GRID_SIZE + 3
};
/* LLVM function parameter indices */
@@ -198,6 +202,11 @@ enum {
SI_PARAM_SAMPLE_COVERAGE,
SI_PARAM_POS_FIXED_PT,
+ /* CS only parameters */
+ SI_PARAM_GRID_SIZE = SI_NUM_RESOURCE_PARAMS,
+ SI_PARAM_BLOCK_ID,
+ SI_PARAM_THREAD_ID,
+
SI_NUM_PARAMS = SI_PARAM_POS_FIXED_PT + 9, /* +8 for COLOR[0..1] */
};