mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
trace: Dump format names.
This commit is contained in:
parent
8fb55dab78
commit
ce2137a6a4
5 changed files with 13 additions and 4 deletions
|
|
@ -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>");
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ void trace_dump_int(struct trace_stream *stream, long int value);
|
|||
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);
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ trace_screen_is_format_supported(struct pipe_screen *_screen,
|
|||
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);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
void trace_dump_format(struct trace_stream *stream,
|
||||
enum pipe_format format)
|
||||
{
|
||||
trace_dump_int(stream, format);
|
||||
trace_dump_enum(stream, pf_name(format) );
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ void trace_dump_template(struct trace_stream *stream,
|
|||
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);
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue