[Freedreno] [PATCH 00/12] drm/msm: fold dpu_format into mdp_formats database
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Sat Dec 2 21:40:04 UTC 2023
During the review of [1] Abhinav pointed out that mdp_rgb_formats and
mdp_rgb_yuv_formats arrays from patch 1 are directly based on the struct
mdp_format formats array. This was true, because MDP4 / MDP5 drivers
used their own (small) list of supported formats. The DPU driver,
supporting more formats, had larger database of the formats and their
properties. While we don't have plans to expand MDP5 formats support, it
make sense to merge these two databases into a common dataset.
[1] https://patchwork.freedesktop.org/series/120377/
Dmitry Baryshkov (12):
drm/msm: fix BPC1 -> BPC4
drm/msm/disp: add mdp_fetch_mode enum
drm/msm/dpu: use format-related definitions from mdp_common.xml.h
drm/msm: add arrays listing formats supported by MDP4/MDP5 hardware
drm/msm/dpu: in dpu_format replace bitmap with unsigned long field
drm/msm/dpu: pull format flag definitions to msm_drv.h
drm/msm: merge dpu_format and mdp_format in struct msm_format
drm/msm: convert msm_format::unpack_tight to the flag
drm/msm: convert msm_format::unpack_align_msb to the flag
drm/msm: convert msm_format::alpha_enable to the flag
drm/msm: merge dpu format database to MDP formats
drm/msm: drop msm_kms_funcs::get_format() callback
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 22 +-
.../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 4 +-
.../drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 6 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 658 +-----------------
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h | 23 -
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 16 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 2 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 123 +---
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 45 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 6 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.c | 17 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 4 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c | 22 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h | 2 +-
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 1 -
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 75 +-
drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 6 +-
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 1 -
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c | 89 ++-
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 16 +-
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 1 -
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 98 ++-
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c | 4 +-
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.h | 2 +-
drivers/gpu/drm/msm/disp/mdp_common.xml.h | 8 +-
drivers/gpu/drm/msm/disp/mdp_format.c | 611 +++++++++++++---
drivers/gpu/drm/msm/disp/mdp_kms.h | 17 -
drivers/gpu/drm/msm/msm_drv.h | 64 ++
drivers/gpu/drm/msm/msm_fb.c | 2 +-
drivers/gpu/drm/msm/msm_kms.h | 4 -
30 files changed, 884 insertions(+), 1065 deletions(-)
--
2.39.2
More information about the Freedreno
mailing list