summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/trace/tr_context.c
diff options
context:
space:
mode:
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 868b4f010d..e81cab252c 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();
}