diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2013-05-16 16:41:03 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-19 14:47:44 +0800 |
commit | d9f693c6cfd0fed0ef3ecd6ae268ed01d4e250d3 (patch) | |
tree | f66c0c70e39f737770bba576455037b0175ad93d /va/va.c | |
parent | 416d64f4c1b0d760ea3c426446a84d329e15c6e5 (diff) | |
download | libva-d9f693c6cfd0fed0ef3ecd6ae268ed01d4e250d3.tar.gz |
vatrace: trace coded buffer create/destroy
Change-Id: If0388cd5e2e141184d88ff5de5612d15e51e3d20
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 880c916092c6d68096c95e49405714d8a21f9322)
Diffstat (limited to 'va/va.c')
-rw-r--r-- | va/va.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -929,15 +929,22 @@ VAStatus vaCreateBuffer ( ) { VADriverContextP ctx; + VAStatus vaStatus; + int ret = 0; + CHECK_DISPLAY(dpy); ctx = CTX(dpy); - int ret = 0; VA_FOOL_FUNC(va_FoolCreateBuffer, dpy, context, type, size, num_elements, data, buf_id); if (ret) return VA_STATUS_SUCCESS; - return ctx->vtable->vaCreateBuffer( ctx, context, type, size, num_elements, data, buf_id); + vaStatus = ctx->vtable->vaCreateBuffer( ctx, context, type, size, num_elements, data, buf_id); + + VA_TRACE_LOG(va_TraceCreateBuffer, + dpy, context, type, size, num_elements, data, buf_id); + + return vaStatus; } VAStatus vaBufferSetNumElements ( @@ -1007,6 +1014,9 @@ VAStatus vaDestroyBuffer ( ctx = CTX(dpy); VA_FOOL_RETURN(); + + VA_TRACE_LOG(va_TraceDestroyBuffer, + dpy, buffer_id); return ctx->vtable->vaDestroyBuffer( ctx, buffer_id ); } |