Commit 76c1fcf1 authored by Xiang, Haihao's avatar Xiang, Haihao

i965_drv_video: clean up

Don't emit PIPE_CONTROL directly, instead call intel_batchbuffer_emit_mi_flush.
Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
parent 23218502
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment