media: mexon-ge2d: fixup frames size in registers
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 3 Jun 2021 08:42:15 +0000 (10:42 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 16 Feb 2022 11:24:28 +0000 (12:24 +0100)
commit79e8c421a099bfbcebe59740153e55aa0442ced6
treec575cb0656280f62c814ee73d912fb8e3dcfd63c
parentfcc6217645ea1dbbbe523968d3a25397b514a67a
media: mexon-ge2d: fixup frames size in registers

The CLIP, SRC & DST registers are coded to take the pixel/line start & end,
starting from 0. Thus the end should be the width/height minus 1.

It can be an issue with clipping and rotation, where it will add spurious
lines from uninitialized or unwanted data with a shift in the result.

Fixes: 59a635327ca7 ("media: meson: Add M2M driver for the Amlogic GE2D Accelerator Unit")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/meson/ge2d/ge2d.c