radv/video: fix used for reference flags.

These weren't getting programmed properly for interlaced videos

Fixes: 3e2c768aa8 ("radv/vcn: enable dynamic dpb tier 2 for h264/h265 on navi21+")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21671>
This commit is contained in:
Dave Airlie 2023-03-03 14:26:05 +10:00 committed by Marge Bot
parent 30ccf31aae
commit 67a606c611

View file

@ -709,7 +709,9 @@ static rvcn_dec_message_avc_t get_h264_msg(struct radv_video_session *vid,
result.used_for_reference_flags |= (1 << (2 * idx));
if (dpb_slot->pStdReferenceInfo->flags.bottom_field_flag)
result.used_for_reference_flags |= (1 << (2 * idx + 1));
else
if (!dpb_slot->pStdReferenceInfo->flags.top_field_flag &&
!dpb_slot->pStdReferenceInfo->flags.bottom_field_flag)
result.used_for_reference_flags |= (3 << (2 * idx));
if (dpb_slot->pStdReferenceInfo->flags.used_for_long_term_reference)