VD1 only accepts YUV buffers. Add OSD2 as a second RGB plane on G12A,
G12B and SM1.
OSD2 supports linear 32-bit RGB buffers, alpha blending and clipping.
Scaling, AFBC and interlaced output are not supported.
Tested on VIM3 with modetest and atomic KMS tests: 1080p, 720p, clipping,
framebuffer offsets, alpha and enable/disable cycles. Canvas pitch limits
and devices-only suspend/resume also pass.
Based on v7.4-rc4. Built for arm64 with Clang and W=1.
---
Guillaume La Roque (8):
drm/meson: honor framebuffer offsets for the primary plane
drm/meson: isolate primary plane scaler setup
drm/meson: keep RGB scanout state per OSD
drm/meson: parameterize the G12A OSD color matrix setup
drm/meson: handle primary plane zpos allocation failure
drm/meson: select RGB plane registers by OSD index
drm/meson: serialize OSD state updates with the IRQ
drm/meson: add a linear RGB overlay on G12A OSD2
drivers/gpu/drm/meson/meson_crtc.c | 132 ++++++++---
drivers/gpu/drm/meson/meson_drv.c | 25 +-
drivers/gpu/drm/meson/meson_drv.h | 44 ++--
drivers/gpu/drm/meson/meson_osd_afbcd.c | 36 +--
drivers/gpu/drm/meson/meson_plane.c | 409 ++++++++++++++++++++------------
drivers/gpu/drm/meson/meson_plane.h | 2 +-
drivers/gpu/drm/meson/meson_registers.h | 5 +
drivers/gpu/drm/meson/meson_viu.c | 52 ++--
8 files changed, 467 insertions(+), 238 deletions(-)
---
base-commit: 8d7fe9885c62fc9a95bf55d9db244d9672a8aadc
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
master
change-id: 20261124-meson-g12a-osd2-24b18a3c10c8
Best regards,
--
Guillaume La Roque <[email protected]>