trace: Trace the correct version of the resource when setting the index buffer.
authorAlex Corscadden <alexc@vmware.com>
Tue, 17 Aug 2010 18:35:29 +0000 (11:35 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 21 Aug 2010 08:44:12 +0000 (09:44 +0100)
The trace driver was tracing the unwrapped version of the index buffer
when setting the index buffer.  This caused an assert validating that
a resource belonged to the trace driver to fail.  Instead, we'll log
the unmodified index buffer structure when setting the index buffer.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/trace/tr_context.c

index 84e5a6a8242f3ebccb5081db486f7fca0d1ff0d4..5d5bb41d9444bb5946cff7251d3dd8aee7b7f67b 100644 (file)
@@ -1002,7 +1002,7 @@ trace_context_set_index_buffer(struct pipe_context *_pipe,
    trace_dump_call_begin("pipe_context", "set_index_buffer");
 
    trace_dump_arg(ptr, pipe);
-   trace_dump_arg(index_buffer, ib);
+   trace_dump_arg(index_buffer, _ib);
 
    pipe->set_index_buffer(pipe, ib);