summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-02-21 19:54:55 +0000
committerJosé Fonseca <[email protected]>2013-02-22 08:40:47 +0000
commit59025d6e951467a8f5a6ebf909128b0e080f484d (patch)
tree25046f5fe102b176c75ee6d8b61546581d440504 /src/gallium/drivers
parentb92984b2fa9273ca4470cb973303b231fff9818c (diff)
trace: Fix set_constant_buffer dumping.
We were dumping the trace driver pointer, instead of the pointer from the underlying pipe driver.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/trace/tr_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 538ff4afc9e..f8637bd599d 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -700,6 +700,7 @@ trace_context_set_constant_buffer(struct pipe_context *_pipe,
if (constant_buffer) {
cb = *constant_buffer;
cb.buffer = trace_resource_unwrap(tr_ctx, constant_buffer->buffer);
+ constant_buffer = &cb;
}
trace_dump_call_begin("pipe_context", "set_constant_buffer");
@@ -709,8 +710,7 @@ trace_context_set_constant_buffer(struct pipe_context *_pipe,
trace_dump_arg(uint, index);
trace_dump_arg(constant_buffer, constant_buffer);
- pipe->set_constant_buffer(pipe, shader, index,
- constant_buffer ? &cb : NULL);
+ pipe->set_constant_buffer(pipe, shader, index, constant_buffer);
trace_dump_call_end();
}