summaryrefslogtreecommitdiff
path: root/include/linux/ima.h
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2022-11-08 17:14:20 +0300
committerPhilipp Zabel <philipp.zabel@gmail.com>2023-01-02 18:10:05 +0300
commit92d43bd3bc9728c1fb114d7011d46f5ea9489e28 (patch)
treee74ab7fcb384a0c11dd5a6b37888eab52231a4bb /include/linux/ima.h
parenta764da46cd15f8b40292d2c0b29c4bf9a3e66c7e (diff)
downloadlinux-92d43bd3bc9728c1fb114d7011d46f5ea9489e28.tar.xz
drm/imx: ipuv3-plane: Fix overlay plane width
ipu_src_rect_width() was introduced to support odd screen resolutions such as 1366x768 by internally rounding up primary plane width to a multiple of 8 and compensating with reduced horizontal blanking. This also caused overlay plane width to be rounded up, which was not intended. Fix overlay plane width by limiting the rounding up to the primary plane. drm_rect_width(&new_state->src) >> 16 is the same value as drm_rect_width(dst) because there is no plane scaling support. Fixes: 94dfec48fca7 ("drm/imx: Add 8 pixel alignment fix") Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Link: https://lore.kernel.org/r/20221108141420.176696-1-p.zabel@pengutronix.de Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Link: https://patchwork.freedesktop.org/patch/msgid/20221108141420.176696-1-p.zabel@pengutronix.de Tested-by: Ian Ray <ian.ray@ge.com> (cherry picked from commit 4333472f8d7befe62359fecb1083cd57a6e07bfc) Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Diffstat (limited to 'include/linux/ima.h')
0 files changed, 0 insertions, 0 deletions