On 18/10/2021 17:28, Neil Armstrong wrote:
From: Benoit Parrot <bpar...@ti.com>

Split out the hardware overlay specifics from omap_plane.
To start, the hw overlays are statically assigned to planes.

The goal is to eventually assign hw overlays dynamically to planes
during plane->atomic_check() based on requested caps (scaling, YUV,
etc). And then perform hw overlay re-assignment if required.

Signed-off-by: Benoit Parrot <bpar...@ti.com>
Signed-off-by: Neil Armstrong <narmstr...@baylibre.com>
---
  drivers/gpu/drm/omapdrm/Makefile       |  1 +
  drivers/gpu/drm/omapdrm/omap_drv.c     |  9 ++-
  drivers/gpu/drm/omapdrm/omap_drv.h     |  4 ++
  drivers/gpu/drm/omapdrm/omap_overlay.c | 84 ++++++++++++++++++++++++++
  drivers/gpu/drm/omapdrm/omap_overlay.h | 30 +++++++++
  drivers/gpu/drm/omapdrm/omap_plane.c   | 54 +++++++----------
  6 files changed, 148 insertions(+), 34 deletions(-)
  create mode 100644 drivers/gpu/drm/omapdrm/omap_overlay.c
  create mode 100644 drivers/gpu/drm/omapdrm/omap_overlay.h

Reviewed-by: Tomi Valkeinen <tomi.valkei...@ideasonboard.com>

 Tomi

Reply via email to