From eb3dd03bfabdb918a0e7667727411d6faf87d754 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 12 Jul 2010 23:57:23 +0200 Subject: [PATCH] Fix vaGetImage() to wait for pending operations to complete. --- i965_drv_video/i965_drv_video.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.7.4