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();
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);
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();
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);
}