Fix vaGetImage() to wait for pending operations to complete.
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Mon, 12 Jul 2010 21:57:23 +0000 (23:57 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 13 Jul 2010 00:50:40 +0000 (08:50 +0800)
i965_drv_video.c

index 7ca3858..63cd917 100644 (file)
@@ -1602,6 +1602,9 @@ i965_GetImage(VADriverContextP ctx,
         y + height > obj_image->image.height)
         return VA_STATUS_ERROR_INVALID_PARAMETER;
 
+    /* Commit pending operations to the HW */
+    intel_batchbuffer_flush(ctx);
+
     VAStatus va_status;
     void *image_data = NULL;