diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-09-29 16:25:02 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-11-13 15:29:32 +0800 |
commit | 37e75533107a20c2ae3367aa6076c00e7c7bff13 (patch) | |
tree | a09eb6bf7a7ecb121a3718bd44aecd0533340c99 /src/gen75_mfc.c | |
parent | 866ff19067e5bdde6f9ad377ae01c2ac16d04a0c (diff) | |
download | libva-intel-driver-37e75533107a20c2ae3367aa6076c00e7c7bff13.tar.gz libva-intel-driver-37e75533107a20c2ae3367aa6076c00e7c7bff13.tar.bz2 libva-intel-driver-37e75533107a20c2ae3367aa6076c00e7c7bff13.zip |
Pass the reference frame index in List0/1 into the PAK command
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit 68380a7f141bedcc0f6fbbbcee2f5e42b6ade0e0)
Diffstat (limited to 'src/gen75_mfc.c')
-rw-r--r-- | src/gen75_mfc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c index 4eecc9c..c92f74d 100644 --- a/src/gen75_mfc.c +++ b/src/gen75_mfc.c @@ -1040,6 +1040,7 @@ gen75_mfc_avc_pak_object_inter(VADriverContextP ctx, int x, int y, int end_mb, i 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) @@ -1117,8 +1118,8 @@ gen75_mfc_avc_pak_object_inter(VADriverContextP ctx, int x, int y, int end_mb, i 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) | |