From b275bed549570462b423026820677a443d386ffe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 12 May 2012 16:59:22 +0100 Subject: [PATCH] trace: Fix pipe_shader_state dumping. --- src/gallium/drivers/trace/tr_dump_state.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/trace/tr_dump_state.c b/src/gallium/drivers/trace/tr_dump_state.c index fb8683adba5..2e8df54ceba 100644 --- a/src/gallium/drivers/trace/tr_dump_state.c +++ b/src/gallium/drivers/trace/tr_dump_state.c @@ -274,7 +274,8 @@ void trace_dump_shader_state(const struct pipe_shader_state *state) trace_dump_member_begin("stream_output"); trace_dump_struct_begin("pipe_stream_output_info"); trace_dump_member(uint, &state->stream_output, num_outputs); - trace_dump_array(uint, state->stream_output.stride, PIPE_MAX_SO_BUFFERS); + trace_dump_member_array(uint, &state->stream_output, stride); + trace_dump_member_begin("output"); trace_dump_array_begin(); for(i = 0; i < state->stream_output.num_outputs; ++i) { trace_dump_elem_begin(); @@ -288,8 +289,9 @@ void trace_dump_shader_state(const struct pipe_shader_state *state) trace_dump_elem_end(); } trace_dump_array_end(); + trace_dump_member_end(); // output trace_dump_struct_end(); - trace_dump_member_end(); + trace_dump_member_end(); // stream_output trace_dump_struct_end(); } -- 2.30.2