Call va_TraceEndPicture() after the actual vaEndPicture(). i.e. let the driver flush... 02/602/1
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Wed, 2 Jun 2010 07:04:33 +0000 (09:04 +0200)
committerAustin Yuan <shengquan.yuan@gmail.com>
Wed, 2 Jun 2010 09:23:05 +0000 (17:23 +0800)
va/va.c

diff --git a/va/va.c b/va/va.c
index 1632e55..fb843e8 100644 (file)
--- a/va/va.c
+++ b/va/va.c
@@ -712,12 +712,14 @@ VAStatus vaEndPicture (
     VAContextID context
 )
 {
+  VAStatus va_status;
   VADriverContextP ctx;
   CHECK_DISPLAY(dpy);
   ctx = CTX(dpy);
 
+  va_status = ctx->vtable.vaEndPicture( ctx, context );
   VA_TRACE(va_TraceEndPicture, dpy, context);
-  return ctx->vtable.vaEndPicture( ctx, context );
+  return va_status;
 }
 
 VAStatus vaSyncSurface (