trace: Dump polygon stipple state as an array.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 11 Aug 2008 17:09:36 +0000 (18:09 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 12 Aug 2008 10:34:41 +0000 (11:34 +0100)
src/gallium/drivers/trace/tr_state.c

index 961705b9eec410ed06c722a86c58f7768fc78b35..e074ae7abc1cf33e4d04d539ac64acd904f9a067 100644 (file)
@@ -150,9 +150,10 @@ void trace_dump_poly_stipple(struct trace_stream *stream,
    trace_dump_struct_begin(stream, "pipe_poly_stipple");
 
    trace_dump_member_begin(stream, "stipple");
-   trace_dump_bytes(stream, 
+   trace_dump_array(stream,
+                    uint,
                     state->stipple, 
-                    sizeof(state->stipple));
+                    Elements(state->stipple));
    trace_dump_member_end(stream);
    
    trace_dump_struct_end(stream);