From e16c5504cd5debadf1349c0da296aaab225c0e38 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 31 Jul 2017 10:04:34 +1200 Subject: Add planes. --- backend/drm/drm.h | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'backend/drm/drm.h') diff --git a/backend/drm/drm.h b/backend/drm/drm.h index 299be942..44eca101 100644 --- a/backend/drm/drm.h +++ b/backend/drm/drm.h @@ -39,9 +39,14 @@ struct wlr_drm_plane { struct wlr_drm_crtc { uint32_t id; - struct wlr_drm_plane *primary; - struct wlr_drm_plane *overlay; - struct wlr_drm_plane *cursor; + union { + struct { + struct wlr_drm_plane *overlay; + struct wlr_drm_plane *primary; + struct wlr_drm_plane *cursor; + }; + struct wlr_drm_plane *planes[3]; + }; union wlr_drm_crtc_props props; @@ -78,12 +83,23 @@ struct wlr_backend_state { size_t num_planes; struct wlr_drm_plane *planes; - size_t num_overlay_planes; - struct wlr_drm_plane *overlay_planes; - size_t num_primary_planes; - struct wlr_drm_plane *primary_planes; - size_t num_cursor_planes; - struct wlr_drm_plane *cursor_planes; + union { + struct { + size_t num_overlay_planes; + size_t num_primary_planes; + size_t num_cursor_planes; + }; + size_t num_type_planes[3]; + }; + + union { + struct { + struct wlr_drm_plane *overlay_planes; + struct wlr_drm_plane *primary_planes; + struct wlr_drm_plane *cursor_planes; + }; + struct wlr_drm_plane *type_planes[3]; + }; struct wl_display *display; struct wl_event_source *drm_event; -- cgit v1.2.3