Re: [PATCH v7 2/3] media: verisilicon: AV1: Fix luma size

From: Nicolas Dufresne

Date: Mon Nov 23 2026 - 22:44:45 EST


Since you need a v8 ...

Le lundi 23 novembre 2026 à 22:30 -0500, Nicolas Dufresne a écrit :
> Le vendredi 20 novembre 2026 à 15:31 +0100, Benjamin Gaignard a écrit :
> > Use the values computed by v4l2 helpers to get luma size.
> > Unlile before this will also take care of padding.

Unlike

> >
> > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@xxxxxxxxxxxxx>
> > Fixes: 727a400686a2c ("media: verisilicon: Add Rockchip AV1 decoder")

Fixes goes before Signed-off-by, does this need to be cc to stable?

>
> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>
>
> > ---
> > drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c b/drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c
> > index 5da59104a966..5e0cd5268f22 100644
> > --- a/drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c
> > +++ b/drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c
> > @@ -221,7 +221,7 @@ static void rockchip_vpu981_av1_dec_clean_refs(struct hantro_ctx *ctx)
> >
> > static size_t rockchip_vpu981_av1_dec_luma_size(struct hantro_ctx *ctx)
> > {
> > - return ctx->dst_fmt.width * ctx->dst_fmt.height * ctx->bit_depth / 8;
> > + return ctx->ref_fmt.plane_fmt[0].bytesperline * ctx->ref_fmt.height;
> > }
> >
> > static size_t rockchip_vpu981_av1_dec_chroma_size(struct hantro_ctx *ctx)

Attachment: signature.asc
Description: This is a digitally signed message part