From: Gwenole Beauchesne Date: Mon, 12 Jul 2010 21:57:23 +0000 (+0200) Subject: Fix vaGetImage() to wait for pending operations to complete. X-Git-Tag: 1.0_branch~351 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=161b9c98d8f084213e4b86b74c5a85c7cffd0b2f;p=profile%2Fivi%2Fvaapi-intel-driver.git Fix vaGetImage() to wait for pending operations to complete. --- diff --git a/i965_drv_video.c b/i965_drv_video.c index 7ca3858..63cd917 100644 --- a/i965_drv_video.c +++ b/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;