media: renesas: vsp1: Compute partitions for DRM pipelines
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 19 Nov 2023 01:11:51 +0000 (03:11 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 19 Jun 2024 22:36:48 +0000 (01:36 +0300)
commit0656babf3c244b7760a6c005485d4b7b9be639e9
treed0e4d4fe999a39b9a0b5e316cf79ec4d5943cb91
parent51648e9605016b2b9d284e890b36bc27a71678dd
media: renesas: vsp1: Compute partitions for DRM pipelines

The DRM pipelines don't partition frames, as the hardware operates
synchronously with the display. The entity operations access
configuration data from the entity state in that case, instead of
accessing the partition structure. This requires special cases in
entity-specific code, increasing the driver complexity.

To prepare for simplifying the code, initialize a single partition for
the DRM pipelines, similarly to how video pipelines create one partition
spanning the full image when partitioning isn't needed. The partition is
allocated statically in the vsp1_drm_pipeline structure instead of
dynamically as for video pipelines, as DRM pipelines are guaranteed to
operate on a single partition.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
drivers/media/platform/renesas/vsp1/vsp1_drm.c
drivers/media/platform/renesas/vsp1/vsp1_drm.h