mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
anv/video: set short term ref list1 even if P frames provided
Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36211>
This commit is contained in:
parent
c55366682c
commit
68e862fe51
1 changed files with 9 additions and 1 deletions
|
|
@ -2098,7 +2098,15 @@ anv_h265_encode_video(struct anv_cmd_buffer *cmd, const VkVideoEncodeInfoKHR *en
|
|||
cmd2.TilingEnable = pps->flags.tiles_enabled_flag;
|
||||
|
||||
if (anv_vdenc_h265_picture_type(frame_info->pStdPictureInfo->pic_type) != 0) {
|
||||
const StdVideoEncodeH265ReferenceListsInfo* ref_lists = frame_info->pStdPictureInfo->pRefLists;
|
||||
StdVideoEncodeH265ReferenceListsInfo* ref_lists =
|
||||
(struct StdVideoEncodeH265ReferenceListsInfo *)frame_info->pStdPictureInfo->pRefLists;
|
||||
|
||||
if (frame_info->pStdPictureInfo->pic_type == STD_VIDEO_H265_PICTURE_TYPE_P) {
|
||||
for (int i = 0; i< STD_VIDEO_H265_MAX_NUM_LIST_REF; i++) {
|
||||
ref_lists->RefPicList1[i] = ref_lists->RefPicList0[i];
|
||||
ref_lists->list_entry_l1[i] = ref_lists->list_entry_l0[i];
|
||||
}
|
||||
}
|
||||
|
||||
bool long_term = false;
|
||||
uint8_t ref_slot = ref_lists->RefPicList0[0];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue