From 56d726533004fe802050058045e2033f7f875f3b Mon Sep 17 00:00:00 2001
From: Zhao Yakui <yakui.zhao@intel.com>
Date: Fri, 14 Aug 2015 12:13:08 +0800
Subject: [PATCH 1/2] VPP: Flush batch buffer to assure that previous GPU
 operation is submitted

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
---
 src/i965_post_processing.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 6cb6681..7efb75b 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -5957,6 +5957,8 @@ i965_proc_picture(VADriverContextP ctx,
                                obj_surface,
                                pipeline_param->output_background_color);
 
+        intel_batchbuffer_flush(hw_context->batch);
+
         saved_filter_flag = i965pp_context->filter_flags;
         i965pp_context->filter_flags = VA_FILTER_SCALING_HQ;
 
-- 
1.9.1

