[PATCH weston v9 5/9] compositor-drm: allow shared-CRTC cloning

Pekka Paalanen ppaalanen at gmail.com
Thu Apr 19 12:09:15 UTC 2018


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Allow cloning up to 4 connectors from the same CRTC. All the
implementation bits support more than one head per output already.

Four is just an arbitary number, small but unlikely to ever be the
limiting factor in cloning since hardware is usually very restricted.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Acked-by: Derek Foreman <derekf at osg.samsung.com>
---
 libweston/compositor-drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 25d122de..c78c7a8f 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -83,7 +83,7 @@
 #define GBM_BO_USE_CURSOR GBM_BO_USE_CURSOR_64X64
 #endif
 
-#define MAX_CLONED_CONNECTORS 1
+#define MAX_CLONED_CONNECTORS 4
 
 /**
  * Represents the values of an enum-type KMS property
-- 
2.16.1



More information about the wayland-devel mailing list