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.
cfed369 add the support of multiple context tracing
va/va.c | 16 +-
va/va_trace.c | 1260 +++++++++++++++++++++++++++++++++++++++++++++++----------
va/va_trace.h | 12 +
3 files changed, 1069 insertions(+), 219 deletions(-)