From: José Fonseca Date: Sat, 12 May 2012 15:59:22 +0000 (+0100) Subject: trace: Fix pipe_shader_state dumping. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b275bed549570462b423026820677a443d386ffe;p=mesa.git trace: Fix pipe_shader_state dumping. --- 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(); }