summaryrefslogtreecommitdiff
path: root/src/gen8_mfc.c
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2013-06-21 13:29:24 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-02-27 10:22:18 +0800
commit7e8ce8ce06e6e7efcab69b506758e6628882dd83 (patch)
tree4a6223e985d45c4b7f86e85b3e5d080efaca49f4 /src/gen8_mfc.c
parent5e88fa8fb1b5009fb69501adce8395d6ea05dba7 (diff)
downloadlibva-intel-driver-7e8ce8ce06e6e7efcab69b506758e6628882dd83.tar.gz
libva-intel-driver-7e8ce8ce06e6e7efcab69b506758e6628882dd83.tar.bz2
libva-intel-driver-7e8ce8ce06e6e7efcab69b506758e6628882dd83.zip
PAK encoding uses the reference list parsed from slice_param instead of hacked DPB
This is backported from Sandybridge/Ivybridge/Haswell. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/gen8_mfc.c')
-rw-r--r--src/gen8_mfc.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/gen8_mfc.c b/src/gen8_mfc.c
index 0bf452b..258f94f 100644
--- a/src/gen8_mfc.c
+++ b/src/gen8_mfc.c
@@ -636,31 +636,6 @@ gen8_mfc_avc_directmode_state(VADriverContextP ctx,
ADVANCE_BCS_BATCH(batch);
}
-static void
-gen8_mfc_avc_ref_idx_state(VADriverContextP ctx, struct intel_encoder_context *encoder_context)
-{
- struct intel_batchbuffer *batch = encoder_context->base.batch;
- int i;
-
- BEGIN_BCS_BATCH(batch, 10);
- OUT_BCS_BATCH(batch, MFX_AVC_REF_IDX_STATE | 8);
- OUT_BCS_BATCH(batch, 0); //Select L0
- OUT_BCS_BATCH(batch, 0x80808020); //Only 1 reference
- for(i = 0; i < 7; i++) {
- OUT_BCS_BATCH(batch, 0x80808080);
- }
- ADVANCE_BCS_BATCH(batch);
-
- BEGIN_BCS_BATCH(batch, 10);
- OUT_BCS_BATCH(batch, MFX_AVC_REF_IDX_STATE | 8);
- OUT_BCS_BATCH(batch, 1); //Select L1
- OUT_BCS_BATCH(batch, 0x80808022); //Only 1 reference
- for(i = 0; i < 7; i++) {
- OUT_BCS_BATCH(batch, 0x80808080);
- }
- ADVANCE_BCS_BATCH(batch);
-}
-
static void
gen8_mfc_bsp_buf_base_addr_state(VADriverContextP ctx,
@@ -707,7 +682,7 @@ static void gen8_mfc_avc_pipeline_picture_programing( VADriverContextP ctx,
mfc_context->avc_qm_state(ctx, encoder_context);
mfc_context->avc_fqm_state(ctx, encoder_context);
gen8_mfc_avc_directmode_state(ctx, encoder_context);
- gen8_mfc_avc_ref_idx_state(ctx, encoder_context);
+ intel_mfc_avc_ref_idx_state(ctx, encode_state, encoder_context);
}