[PATCH weston 11/13] compositor-drm: Cursors need to be broken with stereoscopy.

Emmanuel Gil Peyrot linkmauve at linkmauve.fr
Tue Nov 14 15:05:58 UTC 2017


From: Emmanuel Gil Peyrot <emmanuel.peyrot at collabora.com>

There is only one cursor plane per output, and we need to render two
cursors on stereo outputs, so currently set cursors_are_broken
globally.  In the future, this option could be changed to be per-output
to keep the plane optimisation for non-stereo outputs.

Signed-off-by: Emmanuel Gil Peyrot <linkmauve at linkmauve.fr>
---
 libweston/compositor-drm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 1d28d09d..00f85e8b 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -2087,6 +2087,9 @@ init_kms_caps(struct drm_backend *b)
 		if (ret == 0)
 			b->compositor->capabilities |= WESTON_CAP_STEREOSCOPY;
 		weston_log("DRM: %sstereo support\n", ret != 0 ? "no " : "");
+
+		/* TODO: We need to make that per-output. */
+		b->cursors_are_broken = 1;
 	}
 
 	ret = drmGetCap(b->drm.fd, DRM_CAP_TIMESTAMP_MONOTONIC, &cap);
-- 
2.15.0



More information about the wayland-devel mailing list