summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/trace/tr_dump.c
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-07 19:46:39 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-07 20:58:09 +0100
commitce2137a6a4c2648a77b9697a3aa0479c9c61bacc (patch)
tree5ee987722d79e44d81b696470e059ae011dc4bac /src/gallium/drivers/trace/tr_dump.c
parent8fb55dab783f2de5111e7440093e1458fce5fb3d (diff)
trace: Dump format names.
Diffstat (limited to 'src/gallium/drivers/trace/tr_dump.c')
-rw-r--r--src/gallium/drivers/trace/tr_dump.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index 0591b9fc33..359a903ab9 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -280,6 +280,14 @@ void trace_dump_string(struct trace_stream *stream,
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>");