summaryrefslogtreecommitdiff
path: root/src/gen75_mfc.c
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2012-12-10 16:29:36 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2012-12-14 10:49:08 +0800
commit4576025d3684289a304726b6a33a0896e8e02f69 (patch)
treeaf779863cb9ef352891ce33c58895a1156c6c5b2 /src/gen75_mfc.c
parent9526697f350e2e57d7ce62f15da4b72cd7d65792 (diff)
downloadlibva-intel-driver-4576025d3684289a304726b6a33a0896e8e02f69.tar.gz
libva-intel-driver-4576025d3684289a304726b6a33a0896e8e02f69.tar.bz2
libva-intel-driver-4576025d3684289a304726b6a33a0896e8e02f69.zip
Fix the corrupted macroblock for AVC encoding on HSW
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/gen75_mfc.c')
-rw-r--r--src/gen75_mfc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c
index 171e5c4..974aca3 100644
--- a/src/gen75_mfc.c
+++ b/src/gen75_mfc.c
@@ -1068,6 +1068,7 @@ gen75_mfc_avc_pak_object_inter(VADriverContextP ctx, int x, int y, int end_mb, i
OUT_BCS_BATCH(batch, offset);
inter_msg = msg[0] & (0x1F00FFFF);
inter_msg |= INTER_MV8;
+ inter_msg |= ((1 << 19) | (1 << 18) | (1 << 17));
if (((msg[0] & INTER_MODE_MASK) == INTER_8X8) &&
(msg[1] & SUBMB_SHAPE_MASK)) {
inter_msg |= INTER_MV32;