summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_batchbuffer.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-05 10:59:02 +0000
committerKeith Whitwell <[email protected]>2009-11-05 10:59:02 +0000
commit6ac38232ee1ebde5ed390e3ccc22cba59ad00854 (patch)
tree52a16150ad90340a400de478e93c569e99d29609 /src/gallium/drivers/i965/brw_batchbuffer.c
parentb2bf5f98d923b8d52473e069576fc6514c0ffd0a (diff)
i965g: add data type tags to aid dumping/decoding
Diffstat (limited to 'src/gallium/drivers/i965/brw_batchbuffer.c')
-rw-r--r--src/gallium/drivers/i965/brw_batchbuffer.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/gallium/drivers/i965/brw_batchbuffer.c b/src/gallium/drivers/i965/brw_batchbuffer.c
index 673bd1ed44d..ca612e5ed0b 100644
--- a/src/gallium/drivers/i965/brw_batchbuffer.c
+++ b/src/gallium/drivers/i965/brw_batchbuffer.c
@@ -53,7 +53,9 @@ brw_batchbuffer_reset(struct brw_batchbuffer *batch)
if (batch->malloc_buffer)
batch->map = batch->malloc_buffer;
else
- batch->map = batch->sws->bo_map(batch->buf, GL_TRUE);
+ batch->map = batch->sws->bo_map(batch->buf,
+ BRW_DATA_OTHER,
+ GL_TRUE);
batch->size = BRW_BATCH_SIZE;
batch->ptr = batch->map;
@@ -132,7 +134,10 @@ _brw_batchbuffer_flush(struct brw_batchbuffer *batch,
used = batch->ptr - batch->map;
if (batch->use_malloc_buffer) {
- batch->sws->bo_subdata(batch->buf, 0, used, batch->map );
+ batch->sws->bo_subdata(batch->buf,
+ BRW_DATA_OTHER,
+ 0, used,
+ batch->map );
batch->map = NULL;
}
else {
@@ -145,7 +150,9 @@ _brw_batchbuffer_flush(struct brw_batchbuffer *batch,
batch->sws->bo_exec(batch->buf, used );
if (1 /*BRW_DEBUG & DEBUG_BATCH*/) {
- void *ptr = batch->sws->bo_map(batch->buf, GL_FALSE);
+ void *ptr = batch->sws->bo_map(batch->buf,
+ BRW_DATA_OTHER,
+ GL_FALSE);
intel_decode(ptr,
used / 4,
@@ -162,7 +169,9 @@ _brw_batchbuffer_flush(struct brw_batchbuffer *batch,
* interface.
*/
debug_printf("waiting for idle\n");
- batch->sws->bo_map(batch->buf, GL_TRUE);
+ batch->sws->bo_map(batch->buf,
+ BRW_DATA_OTHER,
+ GL_TRUE);
batch->sws->bo_unmap(batch->buf);
}