From 76c1fcf1b544e787e3f0525ab465a5eabbc4476f Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Thu, 26 May 2011 10:33:47 +0800 Subject: [PATCH] i965_drv_video: clean up Don't emit PIPE_CONTROL directly, instead call intel_batchbuffer_emit_mi_flush. Signed-off-by: Xiang, Haihao --- i965_drv_video/gen6_vme.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/i965_drv_video/gen6_vme.c b/i965_drv_video/gen6_vme.c index be23d0d..cefd396 100644 --- a/i965_drv_video/gen6_vme.c +++ b/i965_drv_video/gen6_vme.c @@ -637,12 +637,7 @@ static void gen6_vme_pipeline_programing(VADriverContextP ctx, if (emit_new_state) { /*Step1: MI_FLUSH/PIPE_CONTROL*/ - BEGIN_BATCH(batch, 4); - OUT_BATCH(batch, CMD_PIPE_CONTROL | 0x02); - OUT_BATCH(batch, 0); - OUT_BATCH(batch, 0); - OUT_BATCH(batch, 0); - ADVANCE_BATCH(batch); + intel_batchbuffer_emit_mi_flush(batch); /*Step2: State command PIPELINE_SELECT*/ gen6_vme_pipeline_select(ctx, gen6_encoder_context); -- 2.7.4