]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm: xlnx: zynqmp: Use drm helpers when calculating buffer sizes
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Thu, 23 Apr 2026 14:21:18 +0000 (17:21 +0300)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tue, 5 May 2026 11:04:29 +0000 (14:04 +0300)
commitf5e096f0f494fbab20f0879395f0d3f2033b0ca1
treee94205f258c1859f5cb333ae418e2b4e5b8db42a
parent3c8ed384503f42b985b48310fbe611418b3d5370
drm: xlnx: zynqmp: Use drm helpers when calculating buffer sizes

Use drm helpers, drm_format_info_plane_width(),
drm_format_info_plane_height() and drm_format_info_min_pitch() to
calculate sizes for the DMA.

This cleans up the code, but also makes it possible to support more
complex formats (like P030, P230).

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patch.msgid.link/20260423-xilinx-formats-v10-7-c690c2b8ea89@ideasonboard.com
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/gpu/drm/xlnx/zynqmp_disp.c