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

Submitted by Emmanuel Gil Peyrot on Nov. 14, 2017, 3:05 p.m.

Details

Message ID 20171114150600.1763-12-linkmauve@linkmauve.fr
State New
Headers show
Series "Add stereoscopy support" ( rev: 1 ) in Wayland

Not browsing as part of any series.

Commit Message

Emmanuel Gil Peyrot Nov. 14, 2017, 3:05 p.m.
From: Emmanuel Gil Peyrot <emmanuel.peyrot@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@linkmauve.fr>
---
 libweston/compositor-drm.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

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);