From: Zhao Yakui <yakui.zhao@intel.com>
Subject: [Patch] VPP: Flush the pending operation of VPP clear in time to avoid contest

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

Index: intel-driver/src/i965_post_processing.c
===================================================================
--- intel-driver.orig/src/i965_post_processing.c	2015-07-29 13:32:42.000000000 -0400
+++ intel-driver/src/i965_post_processing.c	2015-07-29 13:34:30.421916302 -0400
@@ -5957,6 +5957,8 @@
                                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;
 
