]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
drm/msm/dpu: take plane rotation into account for wide planes
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 26 Jun 2024 21:45:57 +0000 (00:45 +0300)
committerAbhinav Kumar <quic_abhinavk@quicinc.com>
Mon, 5 Aug 2024 20:56:02 +0000 (13:56 -0700)
commitd3a785e4f983f523380e023d8a05fb6d04402957
tree6914b5ee0e037216468655e40a965516cc053766
parentcb18195914e353ece0e789e365a5a16872169805
drm/msm/dpu: take plane rotation into account for wide planes

Take into account the plane rotation and flipping when calculating src
positions for the wide plane parts.

This is not an issue yet, because rotation is only supported for the
UBWC planes and wide UBWC planes are rejected anyway because in parallel
multirect case only the half of the usual width is supported for tiled
formats. However it's better to fix this now rather than stumbling upon
it later.

Fixes: 80e8ae3b38ab ("drm/msm/dpu: add support for wide planes")
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/601059/
Link: https://lore.kernel.org/r/20240627-dpu-virtual-wide-v5-3-5efb90cbb8be@linaro.org
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c