OSDN Git Service

Fix the incorrect configuration of media_pipeline power domain
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 17 Jan 2017 00:40:17 +0000 (08:40 +0800)
committerSean V Kelley <seanvk@posteo.de>
Tue, 17 Jan 2017 23:03:29 +0000 (15:03 -0800)
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <seanvk@posteo.de>
src/gen8_mfc.c

index 7efe66e..9ea7423 100644 (file)
@@ -1642,11 +1642,12 @@ gen8_mfc_avc_batchbuffer_pipeline(VADriverContextP ctx,
         mfc_context->aux_batchbuffer = NULL;
     }
 
+    if (IS_GEN9(i965->intel.device_info))
+        gen9_gpe_pipeline_end(ctx, &mfc_context->gpe_context, batch);
+
     intel_batchbuffer_end_atomic(batch);
     intel_batchbuffer_flush(batch);
 
-    if (IS_GEN9(i965->intel.device_info))
-        gen9_gpe_pipeline_end(ctx, &mfc_context->gpe_context, batch);
 }
 
 static void