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:
David Rosca 2024-05-25 18:34:14 +02:00 committed by Marge Bot
parent 41f8ac9de7
commit b0d6e58d88

View file

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