compositor-drm: allow shared-CRTC cloning
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 20 Nov 2017 12:04:38 +0000 (14:04 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 2 May 2018 09:08:34 +0000 (12:08 +0300)
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@collabora.co.uk>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
libweston/compositor-drm.c

index 592ee76..287431e 100644 (file)
@@ -85,7 +85,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