From acf67a5e200d5da6d66dc774d59f53aeecbc1953 Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Fri, 21 Oct 2022 14:27:45 +0100 Subject: [PATCH] drm/vc4: Increase number of overlay planes from 16 to 48 The HVS can accept an arbitrary number of planes, provided that the overall pixel read load is within limits, and the display list can fit into the dlist memory. Now that DRM will support 64 planes per device, increase the number of overlay planes from 16 to 48 so that the dlist complexity can be increased (eg 4x4 video wall on each of 3 displays). Signed-off-by: Dave Stevenson --- drivers/gpu/drm/drm_connector.c | 2 +- drivers/gpu/drm/vc4/vc4_plane.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index b8696651dedf82..09cd1df2d6c4a4 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -362,7 +362,7 @@ static int __drm_connector_init(struct drm_device *dev, drm_object_attach_property(&connector->base, config->non_desktop_property, (connector_type != DRM_MODE_CONNECTOR_VIRTUAL && - connector_type != DRM_MODE_CONNECTOR_WRITEBACK) ? 0 : 1; + connector_type != DRM_MODE_CONNECTOR_WRITEBACK) ? 0 : 1); drm_object_attach_property(&connector->base, config->tile_property, 0); diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index 2d1039aa2dcf03..96235f8d94da4f 100644 --- a/drivers/gpu/drm/vc4/vc4_plane.c +++ b/drivers/gpu/drm/vc4/vc4_plane.c @@ -2450,7 +2450,7 @@ struct drm_plane *vc4_plane_init(struct drm_device *dev, return plane; } -#define VC4_NUM_OVERLAY_PLANES 16 +#define VC4_NUM_OVERLAY_PLANES 48 int vc4_plane_create_additional_planes(struct drm_device *drm) {