aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/imx-ldb.c
diff options
context:
space:
mode:
authorPhilipp Zabel <[email protected]>2022-11-08 14:14:20 +0000
committerPhilipp Zabel <[email protected]>2022-12-16 17:40:29 +0000
commit4333472f8d7befe62359fecb1083cd57a6e07bfc (patch)
tree06e8811f9c3739f594f08591f011b57d146cfd5d /drivers/gpu/drm/imx/imx-ldb.c
parentgpu: ipu-v3: common: Add of_node_put() for reference returned by of_graph_get... (diff)
downloadkernel-4333472f8d7befe62359fecb1083cd57a6e07bfc.tar.gz
kernel-4333472f8d7befe62359fecb1083cd57a6e07bfc.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Philipp Zabel <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/imx/imx-ldb.c')
0 files changed, 0 insertions, 0 deletions