The warning "Input ref list is Wrong" is generating
based on assumption that reference frames provided in
VAEncPictureParameterBuffer are in align with
ref_pic_list included in VAEncSliceParameterBuffer.
There shoudn't be such constraints, as per VA specification
pic_param->reference_frames can have any order based on
dpb manipulation.
Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
(cherry picked from commit
b21b187c8146f7840bf176f94a3ad62a4c922add)
fref_entry &= ~(0xFF << ref_idx_l0_shift);
fref_entry += (intel_get_ref_idx_state_1(vme_context->used_references[0], frame_index) << ref_idx_l0_shift);
}
- if(frame_index == 1){
- WARN_ONCE("Input ref list is Wrong !\n");
- }
}
if (slice_type == SLICE_TYPE_B) {
WARN_ONCE("RefPicList 0 or 1 is not found in DPB!\n");
}
- if(num_ref_minus1 == 0 && frame_index == 1 && list == 0){
- WARN_ONCE("Input ref list is Wrong !\n");
- }
-
BEGIN_BCS_BATCH(batch, 18);
OUT_BCS_BATCH(batch, HCP_REF_IDX_STATE | (18 - 2));