diff options
author | Michel Dänzer <[email protected]> | 2009-02-18 18:13:44 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2009-02-18 18:13:44 +0100 |
commit | c738edcc68905fb251cf9edc0529e2e1c778fdee (patch) | |
tree | 56c903e98a82dc0abc01e1874d190a8f12a3dbf0 /src/gallium/drivers/trace/tr_state.c | |
parent | aba88b7ed7a1346adada9532aed9633617eb3b6d (diff) |
gallium: Fix up trace driver for introduction of struct pipe_transfer.
Diffstat (limited to 'src/gallium/drivers/trace/tr_state.c')
-rw-r--r-- | src/gallium/drivers/trace/tr_state.c | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/src/gallium/drivers/trace/tr_state.c b/src/gallium/drivers/trace/tr_state.c index 524f2d61948..81a9e2376e0 100644 --- a/src/gallium/drivers/trace/tr_state.c +++ b/src/gallium/drivers/trace/tr_state.c @@ -403,6 +403,33 @@ void trace_dump_surface(const struct pipe_surface *state) trace_dump_member(uint, state, width); trace_dump_member(uint, state, height); + trace_dump_member(uint, state, layout); + trace_dump_member(uint, state, offset); + trace_dump_member(uint, state, refcount); + trace_dump_member(uint, state, usage); + + trace_dump_member(ptr, state, texture); + trace_dump_member(uint, state, face); + trace_dump_member(uint, state, level); + trace_dump_member(uint, state, zslice); + + trace_dump_struct_end(); +} + + +void trace_dump_transfer(const struct pipe_transfer *state) +{ + if(!state) { + trace_dump_null(); + return; + } + + trace_dump_struct_begin("pipe_transfer"); + + trace_dump_member(format, state, format); + trace_dump_member(uint, state, width); + trace_dump_member(uint, state, height); + trace_dump_member_begin("block"); trace_dump_block(&state->block); trace_dump_member_end(); @@ -410,8 +437,6 @@ void trace_dump_surface(const struct pipe_surface *state) trace_dump_member(uint, state, nblocksx); trace_dump_member(uint, state, nblocksy); trace_dump_member(uint, state, stride); - trace_dump_member(uint, state, layout); - trace_dump_member(uint, state, offset); trace_dump_member(uint, state, refcount); trace_dump_member(uint, state, usage); |