From: Alex Corscadden Date: Tue, 17 Aug 2010 18:35:29 +0000 (-0700) Subject: trace: Trace the correct version of the resource when setting the index buffer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29dde59ea718f70209788bcc3eaf1c3dd7c2ca69;p=mesa.git trace: Trace the correct version of the resource when setting the index buffer. 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 --- diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index 84e5a6a8242..5d5bb41d944 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -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);