mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 16:50:34 +01:00
radeonsi/vcn: Use is_non_existing H264 ref flag
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31368>
This commit is contained in:
parent
e7aaea0e27
commit
bcfe698afe
1 changed files with 2 additions and 1 deletions
|
|
@ -191,7 +191,8 @@ static rvcn_dec_message_avc_t get_h264_msg(struct radeon_decoder *dec,
|
|||
|| dec->h264_valid_poc_num[k] == result.field_order_cnt_list[i][1]))
|
||||
break;
|
||||
}
|
||||
if ((j == ARRAY_SIZE(dec->h264_valid_ref_num)) && (k == ARRAY_SIZE(dec->h264_valid_poc_num))) {
|
||||
if (pic->is_non_existing[i] ||
|
||||
(j == ARRAY_SIZE(dec->h264_valid_ref_num) && k == ARRAY_SIZE(dec->h264_valid_poc_num))) {
|
||||
result.non_existing_frame_flags |= 1 << i;
|
||||
result.curr_pic_ref_frame_num--;
|
||||
result.ref_frame_list[i] = 0xff;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue