summaryrefslogtreecommitdiff
path: root/va/va.c
diff options
context:
space:
mode:
authorpeng.chen <peng.c.chen@intel.com>2016-05-11 15:03:26 +0800
committerSean V Kelley <seanvk@ashland-svkelley.jf.intel.com>2016-05-13 09:51:16 -0700
commitcfed3696b6eff33f7bab16c91a61738ae52b34d0 (patch)
tree7fab2e8b221445531eddde352a28f82c2a29dffe /va/va.c
parent1251f59ae8ec6a4b93f40f5052b3ebbe94fc2e50 (diff)
downloadlibva-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.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/va/va.c b/va/va.c
index 9bdb041..cd88d67 100644
--- a/va/va.c
+++ b/va/va.c
@@ -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 (