]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm/dpu: fix UV scanlines calculation for YUV UBWC formats
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 14 Apr 2026 15:14:30 +0000 (17:14 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 13 May 2026 13:15:28 +0000 (16:15 +0300)
commit933430f1709b089a0bf0b23ef0f047014ef899e7
tree05e96fd3d8bd3e35b580b41aa9f6662075e5c125
parent795b19cbcf43414748261b9dcc783bebfbceb89a
drm/msm/dpu: fix UV scanlines calculation for YUV UBWC formats

The UV scanlines is calculated with (height + 1) / 2 unlike
the Y scanlines, add back the correct scanlines calculation
for UBWC YUV formats.

Fixes: 2f3ff6ab8f5c ("drm/msm/dpu: use standard functions in _dpu_format_populate_plane_sizes_ubwc()")
Fixes: ada4a19ed21c ("drm/msm/dpu: rewrite _dpu_format_populate_plane_sizes_ubwc()")
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/718309/
Link: https://lore.kernel.org/r/20260414-topic-sm8x50-msm-dpu1-formats-qc10c-v1-1-0b62325b9030@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c