]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm/dpu: drop redundant num_planes assignment in _dpu_format_populate_plane_sizes*()
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Fri, 14 Nov 2025 03:43:37 +0000 (05:43 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tue, 13 Jan 2026 06:20:03 +0000 (08:20 +0200)
commitd4db3a06c5baa11e170a1999c6a0aaa110ffd972
tree8c04719593923e17291edd056532bcfc7f7b7ada
parent72f20360d4cc5c78dc6be0b8d0d8f33b45a4b9a1
drm/msm/dpu: drop redundant num_planes assignment in _dpu_format_populate_plane_sizes*()

Drop redundant layout->num_planes assignments, using the value assigned
from the formats table. RGB UBWC formats need special handling: they use
two planes (per the format table), but the uAPI defines plane[1] as
empty.

Reviewed-by: Jessica Zhang <jessica.zhang@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/688180/
Link: https://lore.kernel.org/r/20251114-dpu-formats-v3-10-cae312379d49@oss.qualcomm.com
Tested-by: Luca Weiss <luca.weiss@fairphone.com> # qcm6490-fairphone-fp5
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c