trace_dump_write(stream, "</string>");
}
+void trace_dump_enum(struct trace_stream *stream,
+ const char *value)
+{
+ trace_dump_write(stream, "<enum>");
+ trace_dump_escape(stream, value);
+ trace_dump_write(stream, "</enum>");
+}
+
void trace_dump_array_begin(struct trace_stream *stream)
{
trace_dump_write(stream, "<array>");
void trace_dump_uint(struct trace_stream *stream, long unsigned value);
void trace_dump_float(struct trace_stream *stream, double value);
void trace_dump_string(struct trace_stream *stream, const char *str);
+void trace_dump_enum(struct trace_stream *stream, const char *value);
void trace_dump_array_begin(struct trace_stream *stream);
void trace_dump_array_end(struct trace_stream *stream);
void trace_dump_elem_begin(struct trace_stream *stream);
trace_dump_call_begin(stream, "pipe_screen", "is_format_supported");
trace_dump_arg(stream, ptr, screen);
- trace_dump_arg(stream, int, format);
+ trace_dump_arg(stream, format, format);
trace_dump_arg(stream, int, target);
trace_dump_arg(stream, uint, tex_usage);
trace_dump_arg(stream, uint, geom_flags);
void trace_dump_format(struct trace_stream *stream,
enum pipe_format format)
{
- trace_dump_int(stream, format);
+ trace_dump_enum(stream, pf_name(format) );
}
trace_dump_struct_begin(stream, "pipe_texture");
trace_dump_member(stream, int, templat, target);
- trace_dump_member(stream, int, templat, format);
+ trace_dump_member(stream, format, templat, format);
trace_dump_member_begin(stream, "width");
trace_dump_array(stream, uint, templat->width, 1);
<xsl:apply-templates />
</xsl:template>
- <xsl:template match="bool|int|uint">
+ <xsl:template match="bool|int|uint|enum">
<span class="lit">
<xsl:value-of select="text()"/>
</span>