trace: Fix pipe_shader_state dumping.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 12 May 2012 15:59:22 +0000 (16:59 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 12 May 2012 16:10:31 +0000 (17:10 +0100)
src/gallium/drivers/trace/tr_dump_state.c

index fb8683adba5d7d2015c51ad116b38417b2dd2633..2e8df54cebaa9532b8eda83f64d56191041baf92 100644 (file)
@@ -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();
 }