1 From 5dc4cef7d7fcda4ea59b9e456a835fa54336af6b Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 21 Oct 2022 14:27:45 +0100
4 Subject: [PATCH] drm/vc4: Increase number of overlay planes from 16 to 48
6 The HVS can accept an arbitrary number of planes, provided
7 that the overall pixel read load is within limits, and
8 the display list can fit into the dlist memory.
10 Now that DRM will support 64 planes per device, increase
11 the number of overlay planes from 16 to 48 so that the
12 dlist complexity can be increased (eg 4x4 video wall on
15 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
17 drivers/gpu/drm/drm_connector.c | 2 +-
18 drivers/gpu/drm/vc4/vc4_plane.c | 2 +-
19 2 files changed, 2 insertions(+), 2 deletions(-)
21 --- a/drivers/gpu/drm/drm_connector.c
22 +++ b/drivers/gpu/drm/drm_connector.c
23 @@ -362,7 +362,7 @@ static int __drm_connector_init(struct d
24 drm_object_attach_property(&connector->base,
25 config->non_desktop_property,
26 (connector_type != DRM_MODE_CONNECTOR_VIRTUAL &&
27 - connector_type != DRM_MODE_CONNECTOR_WRITEBACK) ? 0 : 1;
28 + connector_type != DRM_MODE_CONNECTOR_WRITEBACK) ? 0 : 1);
29 drm_object_attach_property(&connector->base,
30 config->tile_property,
32 --- a/drivers/gpu/drm/vc4/vc4_plane.c
33 +++ b/drivers/gpu/drm/vc4/vc4_plane.c
34 @@ -2517,7 +2517,7 @@ struct drm_plane *vc4_plane_init(struct
38 -#define VC4_NUM_OVERLAY_PLANES 16
39 +#define VC4_NUM_OVERLAY_PLANES 48
41 int vc4_plane_create_additional_planes(struct drm_device *drm)