summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_dump.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-04-12 15:03:25 +0900
committerJosé Fonseca <[email protected]>2010-04-12 15:32:22 +0900
commitb77583203e44a8937577bf3b813dc66cea1a2005 (patch)
treef8f9ea7adf655fefc1dfca3fb9e912b0fd6568e4 /src/gallium/drivers/trace/tr_dump.h
parent5a549d8b48c068040a47e845e6f7d069ec42bf7d (diff)
trace: Fix several regressions introduced by recent interface changes.
Diffstat (limited to 'src/gallium/drivers/trace/tr_dump.h')
-rw-r--r--src/gallium/drivers/trace/tr_dump.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.h b/src/gallium/drivers/trace/tr_dump.h
index 9383ccdecb9..f21f72b0c79 100644
--- a/src/gallium/drivers/trace/tr_dump.h
+++ b/src/gallium/drivers/trace/tr_dump.h
@@ -35,6 +35,7 @@
#include "pipe/p_compiler.h"
+#include "pipe/p_format.h"
struct pipe_buffer;
struct pipe_resource;
@@ -93,7 +94,7 @@ void trace_dump_uint(long long unsigned value);
void trace_dump_float(double value);
void trace_dump_bytes(const void *data, size_t size);
void trace_dump_box_bytes(const void *data,
- unsigned format,
+ enum pipe_format format,
const struct pipe_box *box,
unsigned stride,
unsigned slice_stride);
@@ -125,6 +126,13 @@ void trace_dump_transfer_ptr(struct pipe_transfer *_transfer);
trace_dump_arg_end(); \
} while(0)
+#define trace_dump_arg_struct(_type, _arg) \
+ do { \
+ trace_dump_arg_begin(#_arg); \
+ trace_dump_##_type(&_arg); \
+ trace_dump_arg_end(); \
+ } while(0)
+
#define trace_dump_ret(_type, _arg) \
do { \
trace_dump_ret_begin(); \