summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-05-12 16:59:22 +0100
committerJosé Fonseca <[email protected]>2012-05-12 17:10:31 +0100
commitb275bed549570462b423026820677a443d386ffe (patch)
treedc277f517728dcc9573e9f4ae5ebab590b161e58 /src/gallium
parente9efcd99d102b1efef68752c0c78d7e3192c1259 (diff)
trace: Fix pipe_shader_state dumping.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/trace/tr_dump_state.c6
1 files 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();
}