summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2013-12-13 15:18:56 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-02-27 10:22:45 +0800
commit13df1ed3cc578c2735e61192cfe07d3959736ef4 (patch)
tree7b659ba5cf78fbfd9f8983af900b1953c968953a
parent06313021fc960e5bf52c9195da70289a94859aeb (diff)
downloadlibva-intel-driver-13df1ed3cc578c2735e61192cfe07d3959736ef4.tar.gz
libva-intel-driver-13df1ed3cc578c2735e61192cfe07d3959736ef4.tar.bz2
libva-intel-driver-13df1ed3cc578c2735e61192cfe07d3959736ef4.zip
Fix the command error for MPEG2 encoding on BDW
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
-rw-r--r--src/gen8_vme.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gen8_vme.c b/src/gen8_vme.c
index 095dbd4..464c344 100644
--- a/src/gen8_vme.c
+++ b/src/gen8_vme.c
@@ -1068,12 +1068,14 @@ gen8_vme_mpeg2_pipeline_programing(VADriverContextP ctx,
intel_batchbuffer_start_atomic(batch, 0x1000);
gen8_gpe_pipeline_setup(ctx, &vme_context->gpe_context, batch);
- BEGIN_BATCH(batch, 2);
- OUT_BATCH(batch, MI_BATCH_BUFFER_START | (2 << 6));
+ BEGIN_BATCH(batch, 4);
+ OUT_BATCH(batch, MI_BATCH_BUFFER_START | (1 << 8) | (1 << 0));
OUT_RELOC(batch,
vme_context->vme_batchbuffer.bo,
I915_GEM_DOMAIN_COMMAND, 0,
0);
+ OUT_BATCH(batch, 0);
+ OUT_BATCH(batch, 0);
ADVANCE_BATCH(batch);
intel_batchbuffer_end_atomic(batch);