mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
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:
parent
30ccf31aae
commit
67a606c611
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue