mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
trace: Trace pipe context calls.
This commit is contained in:
parent
c76d86f0ab
commit
f2e19c34e0
3 changed files with 1027 additions and 7 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -38,21 +38,21 @@ struct trace_context
|
|||
{
|
||||
struct pipe_context base;
|
||||
|
||||
/* TODO */
|
||||
struct pipe_context *pipe;
|
||||
};
|
||||
|
||||
|
||||
static INLINE struct trace_context *
|
||||
trace_context(struct pipe_context *context)
|
||||
trace_context(struct pipe_context *pipe)
|
||||
{
|
||||
assert(context);
|
||||
return (struct trace_context *)context;
|
||||
assert(pipe);
|
||||
return (struct trace_context *)pipe;
|
||||
}
|
||||
|
||||
|
||||
|
||||
struct pipe_context *
|
||||
trace_context_create(struct pipe_context *context);
|
||||
trace_context_create(struct pipe_context *pipe);
|
||||
|
||||
|
||||
#endif /* TR_CONTEXT_H_ */
|
||||
|
|
|
|||
|
|
@ -91,6 +91,13 @@ void trace_dump_ptr(struct trace_stream *stream, const void *value);
|
|||
trace_dump_array_end(_stream); \
|
||||
} while(0)
|
||||
|
||||
#define trace_dump_arg_array(_stream, _type, _arg, _size) \
|
||||
do { \
|
||||
trace_dump_arg_begin(_stream, #_arg); \
|
||||
trace_dump_array(_stream, _type, _arg, _size); \
|
||||
trace_dump_arg_end(_stream); \
|
||||
} while(0)
|
||||
|
||||
#define trace_dump_member(_stream, _type, _obj, _member) \
|
||||
do { \
|
||||
trace_dump_member_begin(_stream, #_member); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue