summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_state_batch.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-06-22 15:14:20 -0700
committerEric Anholt <eric@anholt.net>2011-07-11 09:27:26 -0700
commitd375df220fae47f38944c4832bcbd5f5d568884c (patch)
tree72def3fc4a2fb682660c771f198850f8675954c6 /src/mesa/drivers/dri/i965/brw_state_batch.c
parent35d5d5df72a2747262e00e521e650c8974d6c64d (diff)
downloadexternal_mesa3d-d375df220fae47f38944c4832bcbd5f5d568884c.zip
external_mesa3d-d375df220fae47f38944c4832bcbd5f5d568884c.tar.gz
external_mesa3d-d375df220fae47f38944c4832bcbd5f5d568884c.tar.bz2
i965: Add a type argument to brw_state_batch().
I want to make brw_state_dump.c handle more than just the last statechange, so I want to keep track of what's in the batch state. By using AUB file numbering for most of these packets, this may be reusable for aub dumping. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_state_batch.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state_batch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_batch.c b/src/mesa/drivers/dri/i965/brw_state_batch.c
index 213c7a3..32f315e 100644
--- a/src/mesa/drivers/dri/i965/brw_state_batch.c
+++ b/src/mesa/drivers/dri/i965/brw_state_batch.c
@@ -49,6 +49,7 @@
*/
void *
brw_state_batch(struct brw_context *brw,
+ enum state_struct_type type,
int size,
int alignment,
uint32_t *out_offset)