summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_context.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-08-14 14:38:58 +0100
committerJosé Fonseca <[email protected]>2008-08-15 10:35:18 +0100
commit4fffc9d63f117cfc5d5b2400536e8757c786cc1e (patch)
treef13a64be02316c8fbc55fb3201ff3a8db0b7a2d2 /src/gallium/drivers/trace/tr_context.c
parent37336b7d9e7f8bed8765e9d8e4f61f804e4d8107 (diff)
trace: Several fixes.
Diffstat (limited to 'src/gallium/drivers/trace/tr_context.c')
-rw-r--r--src/gallium/drivers/trace/tr_context.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 868b4f010d0..e81cab252c3 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -318,11 +318,11 @@ trace_context_create_sampler_state(struct pipe_context *_pipe,
trace_dump_call_begin("pipe_context", "create_sampler_state");
trace_dump_arg(ptr, pipe);
- trace_dump_arg(ptr, state);
+ trace_dump_arg(sampler_state, state);
result = pipe->create_sampler_state(pipe, state);;
- trace_dump_ret(sampler_state, result);
+ trace_dump_ret(ptr, result);
trace_dump_call_end();
@@ -888,10 +888,12 @@ trace_context_flush(struct pipe_context *_pipe,
trace_dump_arg(ptr, pipe);
trace_dump_arg(uint, flags);
- trace_dump_arg(ptr, fence);
pipe->flush(pipe, flags, fence);;
+ if(fence)
+ trace_dump_ret(ptr, *fence);
+
trace_dump_call_end();
}