summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-03-19 16:11:05 +0100
committerJakob Bornecrantz <[email protected]>2009-03-19 19:18:38 +0100
commitc9a318a7c607e96dc100926cbd2d78d94e41eb52 (patch)
treef69a743b8cbc2ea7615c02685035b851025026cd
parentbbd208b60c4d39cccb931b4d23efc9d42648afd3 (diff)
trace: Formalize on a standard for data size pair
-rw-r--r--src/gallium/drivers/trace/tr_screen.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c
index 098c609f005..954576d7217 100644
--- a/src/gallium/drivers/trace/tr_screen.c
+++ b/src/gallium/drivers/trace/tr_screen.c
@@ -430,14 +430,14 @@ trace_screen_transfer_unmap(struct pipe_screen *_screen,
trace_dump_arg(ptr, transfer);
- trace_dump_arg_begin("data");
- trace_dump_bytes(tr_trans->map, size);
- trace_dump_arg_end();
-
trace_dump_arg_begin("stride");
trace_dump_uint(transfer->stride);
trace_dump_arg_end();
+ trace_dump_arg_begin("data");
+ trace_dump_bytes(tr_trans->map, size);
+ trace_dump_arg_end();
+
trace_dump_arg_begin("size");
trace_dump_uint(size);
trace_dump_arg_end();
@@ -653,9 +653,9 @@ trace_screen_buffer_map_range(struct pipe_screen *_screen,
static void
buffer_write(struct pipe_screen *screen,
struct pipe_buffer *buffer,
- const char *map,
unsigned offset,
- unsigned length)
+ const char *map,
+ unsigned size)
{
assert(map);
@@ -665,12 +665,13 @@ buffer_write(struct pipe_screen *screen,
trace_dump_arg(ptr, buffer);
+ trace_dump_arg(uint, offset);
+
trace_dump_arg_begin("data");
- trace_dump_bytes(map + offset, length);
+ trace_dump_bytes(map + offset, size);
trace_dump_arg_end();
- trace_dump_arg(uint, offset);
- trace_dump_arg(uint, length);
+ trace_dump_arg(uint, size);
trace_dump_call_end();
@@ -689,7 +690,7 @@ trace_screen_buffer_flush_mapped_range(struct pipe_screen *_screen,
struct pipe_buffer *buffer = tr_buf->buffer;
assert(tr_buf->map);
- buffer_write(screen, buffer, tr_buf->map, offset, length);
+ buffer_write(screen, buffer, offset, tr_buf->map, length);
tr_buf->range_flushed = TRUE;
screen->buffer_flush_mapped_range(screen, buffer, offset, length);
}