[PATCH weston 06/13] compositor: Store the stereoscopy layout of an output.

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


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

Backends are responsible for setting it to the expected value, as
specified in wp_stereoscopy.

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

diff --git a/libweston/compositor.c b/libweston/compositor.c
index a2f624f6..9343bdbf 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -4791,6 +4791,7 @@ weston_output_init(struct weston_output *output,
 	output->mm_width = 0;
 	output->mm_height = 0;
 	output->scale = 0;
+	output->stereoscopy_layout = ZWP_STEREOSCOPY_V1_LAYOUT_NONE;
 	/* Can't use -1 on uint32_t and 0 is valid enum value */
 	output->transform = UINT32_MAX;
 
diff --git a/libweston/compositor.h b/libweston/compositor.h
index 6d3fa315..165f257c 100644
--- a/libweston/compositor.h
+++ b/libweston/compositor.h
@@ -235,6 +235,7 @@ struct weston_output {
 
 	bool enabled; /**< is in the output_list, not pending list */
 	int scale;
+	uint32_t stereoscopy_layout;
 
 	int (*enable)(struct weston_output *output);
 	int (*disable)(struct weston_output *output);
-- 
2.15.0



More information about the wayland-devel mailing list