[PATCH] media: verisilicon: postproc: fix the G1 input height extension

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Nov 30 10:29:48 PST 2026


On Wed, 04 Nov 2026 14:27:00 +0300, Sergei Khomenkov wrote:
> The G1 post-processor takes its input size in macroblocks: the low
> bits in swreg72, the high bits in swreg92 (bits 28:26 for bits 11:9
> of the width, bits 31:29 for bits 10:8 of the height). This is the
> VDPU1 layout in Rockchip's MPP library, whose JPEG decoder writes the
> height extension as ((height / 16) & 0x700) >> 8.
> 
> hantro_postproc_g1_enable() computes the width extension that way but
> writes the height extension as MB_HEIGHT(height >> 8), shifting lines
> instead of macroblocks. Every input of 256 to 4080 lines gets an
> extension of 1 instead of 0, so the post-processor is told it has 256
> more macroblock rows than it has: 286 instead of 30 for 480 lines,
> 301 instead of 45 for 720 and 324 instead of 68 for 1080. Inputs
> below 256 lines are not affected.
> 
> [...]

Applied, thanks!

[1/1] media: verisilicon: postproc: fix the G1 input height extension
      commit: 0fa3ee80b5e1081daf96ce5734d673ae03cd1e60

Best regards,
-- 
Nicolas Dufresne <nicolas.dufresne at collabora.com>



More information about the Linux-rockchip mailing list