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:
David Rosca 2024-09-25 17:54:53 +02:00 committed by Marge Bot
parent e7aaea0e27
commit bcfe698afe

View file

@ -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;