[PATCH v2 0/2] media: verisilicon: Fix the VPU981 line stride and minimum size
From: Arun Iyengar via B4 Relay
Date: Sat Dec 05 2026 - 04:47:23 EST
Two cases where the format did not describe what the RK3588 AV1 decoder
writes: the 10-bit line stride, and frames narrower than 49 pixels.
Tested on an Orange Pi 5 (RK3588S), 7.3-based tree, under KASAN, against
libdav1d: 10-bit NV15_4L4 CAPTURE is bit-exact at widths 18, 36, 100,
200 and 328, with buffers of the reported sizeimage, and so is 10-bit
P010 through the post-processor at widths 200 and 328. No
AV1-TEST-VECTORS regression, av1-1-b10-23-film_grain-50 included.
Developed with Claude (Anthropic), which wrote the code and the commit
messages. I reviewed every change.
---
Changes in v2:
- 1/2: stable note: before 7d5e38c070e2, change the size check in
rockchip_vpu981_av1_dec_prepare_run() to ref_fmt instead of dropping
the hunk. Reported by Sashiko.
- Link to v1: https://patch.msgid.link/20261204-av1-ref-stride-v1-0-5d86fb6d6858@xxxxxxxxx
---
Arun Iyengar (2):
media: verisilicon: Match the VPU981 line stride
media: verisilicon: av1: Lower the VPU981 minimum size to 16x16
drivers/media/platform/verisilicon/hantro.h | 2 ++
drivers/media/platform/verisilicon/hantro_av1.c | 8 ++++----
drivers/media/platform/verisilicon/hantro_v4l2.c | 10 ++++++----
drivers/media/platform/verisilicon/rockchip_vpu_hw.c | 10 ++++++----
4 files changed, 18 insertions(+), 12 deletions(-)
---
base-commit: 95c189b26efb07257888ccf9d873a5c366aafbc6
change-id: 20261130-av1-ref-stride-9635a02756d5
Best regards,
--
Arun Iyengar <aiyengar1990@xxxxxxxxx>