mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 21:00:17 +01:00
Reapply "radeonsi/vcn: AV1 skip the redundant bs resize"
The workaround is needed until there is a ffmpeg release with the fix.
This reverts commit 88dfe04b08.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11197
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11221
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29400>
This commit is contained in:
parent
41f8ac9de7
commit
b0d6e58d88
1 changed files with 3 additions and 0 deletions
|
|
@ -2902,6 +2902,9 @@ static void radeon_dec_decode_bitstream(struct pipe_video_codec *decoder,
|
|||
if (!dec->bs_ptr)
|
||||
return;
|
||||
|
||||
if (dec->bs_size && dec->stream_type == RDECODE_CODEC_AV1)
|
||||
return;
|
||||
|
||||
unsigned long total_bs_size = dec->bs_size;
|
||||
for (i = 0; i < num_buffers; ++i)
|
||||
total_bs_size += sizes[i];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue