diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-10-08 13:20:39 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-02-27 10:22:33 +0800 |
commit | 65f7e017b70c745ab4233d9f585fa688e90aeb02 (patch) | |
tree | 32ea6cb18ed7885bbb755e145dd8ce470e65fb50 /src/gen8_mfc.c | |
parent | d8f73daade782f3b7e0f5000270df297bf9f7535 (diff) | |
download | libva-intel-driver-65f7e017b70c745ab4233d9f585fa688e90aeb02.tar.gz libva-intel-driver-65f7e017b70c745ab4233d9f585fa688e90aeb02.tar.bz2 libva-intel-driver-65f7e017b70c745ab4233d9f585fa688e90aeb02.zip |
Pass the reference frame index in List0/1 into the PAK command on BDW
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/gen8_mfc.c')
-rw-r--r-- | src/gen8_mfc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gen8_mfc.c b/src/gen8_mfc.c index 1437424..6979b06 100644 --- a/src/gen8_mfc.c +++ b/src/gen8_mfc.c @@ -894,6 +894,7 @@ gen8_mfc_avc_pak_object_inter(VADriverContextP ctx, int x, int y, int end_mb, in unsigned char target_mb_size,unsigned char max_mb_size, int slice_type, struct intel_batchbuffer *batch) { + struct gen6_vme_context *vme_context = encoder_context->vme_context; int len_in_dwords = 12; unsigned int inter_msg = 0; if (batch == NULL) @@ -971,8 +972,8 @@ gen8_mfc_avc_pak_object_inter(VADriverContextP ctx, int x, int y, int end_mb, in inter_msg = msg[1] >> 8; /*Stuff for Inter MB*/ OUT_BCS_BATCH(batch, inter_msg); - OUT_BCS_BATCH(batch, 0x0); - OUT_BCS_BATCH(batch, 0x0); + OUT_BCS_BATCH(batch, vme_context->ref_index_in_mb[0]); + OUT_BCS_BATCH(batch, vme_context->ref_index_in_mb[1]); /*MaxSizeInWord and TargetSzieInWord*/ OUT_BCS_BATCH(batch, (max_mb_size << 24) | |