FROMLIST: radeon: Resize vp9 dpb based on resolution change
This patch fixes PROTECTION_FAULT caused by less dpb size.
For example, one of vp9 streams resolution changes from frames with
320x180,640x360,640x360,640x360...
dpb created with aligned(320x180)x9x3/2 , but that dpb_size is not
sufficient to accomidate all 9 frames decoded with res 640x360 and
it causing corrupted decode frames from 7th frame onwards along with
PROTECTION_FAULT.
This change resizes dpb buffer when there is a resolution change.
Signed-off-by: SureshGuttula <suresh.guttula@amd.corp-partner.google.com>
from https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11237
BUG=b:190278973,
TEST=Pass video decode tast tests
Change-Id: I6a7b55eee19b3a7a87264a35489c2fadcd8301ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/2959741
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Tested-by: Drew Davenport <ddavenport@chromium.org>
Commit-Queue: Drew Davenport <ddavenport@chromium.org>
1 file changed