summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-07-12 23:57:23 +0200
committerXiang, Haihao <haihao.xiang@intel.com>2010-07-13 08:50:40 +0800
commiteb3dd03bfabdb918a0e7667727411d6faf87d754 (patch)
treee0bb9e56883387150f59b097ff6aaca48f795918
parent501074896a0a48162224717b09db7be9e29aa84e (diff)
downloadlibva-eb3dd03bfabdb918a0e7667727411d6faf87d754.tar.gz
Fix vaGetImage() to wait for pending operations to complete.
-rw-r--r--i965_drv_video/i965_drv_video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c
index 7ca3858..63cd917 100644
--- a/i965_drv_video/i965_drv_video.c
+++ b/i965_drv_video/i965_drv_video.c
@@ -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;