diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2012-08-02 18:32:20 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-19 14:23:27 +0800 |
commit | c4b089bdc8990ee5b5e562f6bf98985343228a65 (patch) | |
tree | 3fdee3ab93fd70d8991a5b69cc6d8066b2d28569 /va/va.c | |
parent | 4068f324aea149aae164e65424bc65e78166ecf5 (diff) | |
download | libva-c4b089bdc8990ee5b5e562f6bf98985343228a65.tar.gz |
va_trace_surface: dumpe surface content after vaEndPicture call
vaEndPicture will kick HW decode/encode, and at this time use CPU
to dump surface content can keep GPU/CPU in parallel.
Also for encode trace, don't need to wait current frame completions
but for decode, we must wait decode till it is completed
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 0af365de4c03c12fc20183093a944f7513a1c7be)
Diffstat (limited to 'va/va.c')
-rw-r--r-- | va/va.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -1069,19 +1069,16 @@ VAStatus vaEndPicture ( VAContextID context ) { - VAStatus va_status; + VAStatus va_status = VA_STATUS_SUCCESS; VADriverContextP ctx; CHECK_DISPLAY(dpy); ctx = CTX(dpy); - /* dump encode source surface */ - VA_TRACE_SURFACE(va_TraceEndPicture, dpy, context, 0); - /* return directly if do dummy operation */ - VA_FOOL_RETURN(); - - va_status = ctx->vtable->vaEndPicture( ctx, context ); - /* dump decode dest surface */ + if (fool_codec == 0) + va_status = ctx->vtable->vaEndPicture( ctx, context ); + + /* dump surface content */ VA_TRACE_SURFACE(va_TraceEndPicture, dpy, context, 1); return va_status; |