[PATCH v7 RESEND 0/3] drm/mediatek: Add support for 10-bit overlays
Justin Green
greenjustin at chromium.org
Wed Mar 8 07:33:55 PST 2023
This patch series adds support for 10-bit overlays to the Mediatek DRM driver.
Specifically, we add support for AR30 and BA30 overlays on MT8195 devices and
lay the groundwork for supporting more 10-bit formats on more devices.
1. Refactor plane initialization logic to allow individual DDP components to
provide their supported pixel formats.
2. Add AR30 and BA30 support to overlay driver.
3. Enable AR30 and BA30 overlays on MT8195.
Version history:
v2:
* Rebase and resolve merge conflicts with the AFBC patch.
v3:
* Moved 10-bit support detection to mtk_disk_ovl.c
v4:
* Moved formats to mtk_disp_ovl.c and mtk_disp_rdma.c
v5:
* Minor style adjustments per checkpatch.pl
v6:
* Refactor patch into patch series.
* Add formats directly to private data.
v7:
* Gate setting OVL_CLRFMT_EXT register on compatibility.
* Split patches for adding 10-bit support and enabling 10-bit support on
MT8195.
Justin Green (3):
drm/mediatek: Refactor pixel format logic
drm/mediatek: Add support for AR30 and BA30 overlays
drm/mediatek: Enable AR30 and BA30 overlays on MT8195
drivers/gpu/drm/mediatek/mtk_disp_drv.h | 4 +
drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 94 +++++++++++++++++++++
drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 38 +++++++++
drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +-
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 4 +
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 20 +++++
drivers/gpu/drm/mediatek/mtk_drm_plane.c | 24 ++----
drivers/gpu/drm/mediatek/mtk_drm_plane.h | 3 +-
8 files changed, 173 insertions(+), 18 deletions(-)
--
2.39.1.456.gfc5497dd1b-goog
More information about the Linux-mediatek
mailing list