summaryrefslogtreecommitdiff
path: root/va/va_trace.h
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_trace.h
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_trace.h')
-rw-r--r--va/va_trace.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/va/va_trace.h b/va/va_trace.h
index 141e7c3..5b320c6 100644
--- a/va/va_trace.h
+++ b/va/va_trace.h
@@ -78,6 +78,12 @@ void va_TraceCreateConfig(
);
DLL_HIDDEN
+void va_TraceDestroyConfig (
+ VADisplay dpy,
+ VAConfigID config_id
+);
+
+DLL_HIDDEN
void va_TraceCreateSurfaces(
VADisplay dpy,
int width,
@@ -109,6 +115,12 @@ void va_TraceCreateContext(
);
DLL_HIDDEN
+void va_TraceDestroyContext (
+ VADisplay dpy,
+ VAContextID context
+);
+
+DLL_HIDDEN
void va_TraceCreateBuffer (
VADisplay dpy,
VAContextID context, /* in */