radeon/vce: Limiting max supported refernce frames to 1 for h264 encoding

VCE currently restricted  max_supported reference frames to 1

Signed-off-by: shanshengwang <shansheng.wang@amd.com>
Suggested-by: Suresh Guttula <suresh.guttula@amd.com>
Acked-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13543>
This commit is contained in:
shanshengwang 2021-10-26 17:50:24 +08:00 committed by Marge Bot
parent d8e4546707
commit 4f4164d62a
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ static void get_pic_control_param(struct rvce_encoder *enc, struct pipe_h264_enc
}
enc->enc_pic.pc.enc_num_mbs_per_slice = encNumMBsPerSlice;
enc->enc_pic.pc.enc_b_pic_pattern = MAX2(enc->base.max_references, 1) - 1;
enc->enc_pic.pc.enc_number_of_reference_frames = MIN2(enc->base.max_references, 2);
enc->enc_pic.pc.enc_number_of_reference_frames = MIN2(enc->base.max_references, 1);
enc->enc_pic.pc.enc_max_num_ref_frames = enc->base.max_references + 1;
enc->enc_pic.pc.enc_num_default_active_ref_l0 = 0x00000001;
enc->enc_pic.pc.enc_num_default_active_ref_l1 = 0x00000001;