diff options
author | peng.chen <peng.c.chen@intel.com> | 2016-05-11 15:03:26 +0800 |
---|---|---|
committer | Sean V Kelley <seanvk@ashland-svkelley.jf.intel.com> | 2016-05-13 09:51:16 -0700 |
commit | cfed3696b6eff33f7bab16c91a61738ae52b34d0 (patch) | |
tree | 7fab2e8b221445531eddde352a28f82c2a29dffe /va/va.c | |
parent | 1251f59ae8ec6a4b93f40f5052b3ebbe94fc2e50 (diff) | |
download | libva-cfed3696b6eff33f7bab16c91a61738ae52b34d0.tar.gz |
add the support of multiple context tracing
Libva has a limited tracing function before. If more than one context is created
in one instance, then this tracing can't work and output wrong log messages.
This patch fixes this problem. Tracing is possible while multiple contexts are
being used.
Each log file name is suffixed by thread id. This file has all log message from
this thread. Each surface or codedbuf dump file name is suffixed by context id.
This file has all surface or codedbuf data of this context.
Signed-off-by: peng.chen <peng.c.chen@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
Tested-by: Daniel Charles <daniel.charles@intel.com>
Diffstat (limited to 'va/va.c')
-rw-r--r-- | va/va.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -740,10 +740,16 @@ VAStatus vaDestroyConfig ( ) { VADriverContextP ctx; + VAStatus vaStatus = VA_STATUS_SUCCESS; + CHECK_DISPLAY(dpy); ctx = CTX(dpy); - return ctx->vtable->vaDestroyConfig ( ctx, config_id ); + vaStatus = ctx->vtable->vaDestroyConfig ( ctx, config_id ); + + VA_TRACE_ALL(va_TraceDestroyConfig, dpy, config_id); + + return vaStatus; } VAStatus vaQueryConfigAttributes ( @@ -1015,10 +1021,16 @@ VAStatus vaDestroyContext ( ) { VADriverContextP ctx; + VAStatus vaStatus; + CHECK_DISPLAY(dpy); ctx = CTX(dpy); - return ctx->vtable->vaDestroyContext( ctx, context ); + vaStatus = ctx->vtable->vaDestroyContext( ctx, context ); + + VA_TRACE_ALL(va_TraceDestroyContext, dpy, context); + + return vaStatus; } VAStatus vaCreateBuffer ( |