summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/radeonsi_shader.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-09-01 23:59:06 +0200
committerMarek Olšák <[email protected]>2013-09-13 01:04:44 +0200
commit8d03d923b6f6816f3771ae3186cd801bfbb98d4c (patch)
tree9f6f551d758498a3d9e5687e7404332d9dfdd481 /src/gallium/drivers/radeonsi/radeonsi_shader.h
parent9d16e70b3f95ea632a0442458c0d5027a8b42d36 (diff)
radeonsi: implement streamout shader support
The shader is responsible for writing to streamout buffers using the TBUFFER_STORE_FORMAT_* instructions. The locations of some input SGPRs and VGPRs are assigned dynamically, because the input SGPRs controlling streamout are not declared if they are not needed, decreasing the indices of all following inputs. Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_shader.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.h b/src/gallium/drivers/radeonsi/radeonsi_shader.h
index 64766c97327..1db8bb8d8ee 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.h
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.h
@@ -50,10 +50,7 @@
#define SI_PARAM_VERTEX_BUFFER 3
#define SI_PARAM_SO_BUFFER 4
#define SI_PARAM_START_INSTANCE 5
-#define SI_PARAM_VERTEX_ID 6
-#define SI_PARAM_DUMMY_0 7
-#define SI_PARAM_DUMMY_1 8
-#define SI_PARAM_INSTANCE_ID 9
+/* the other VS parameters are assigned dynamically */
/* PS only parameters */
#define SI_PARAM_PRIM_MASK 3