[PATCH weston 03/68] compositor-drm: Comment struct members

Daniel Stone daniels at collabora.com
Fri Dec 9 19:57:18 UTC 2016


Clarify the difference between crtc_id (DRM object) and pipe (index into
drmModeRes->crtcs array, possible_crtcs bitmask).

Signed-off-by: Daniel Stone <daniels at collabora.com>
Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>
Differential Revision: https://phabricator.freedesktop.org/D1405
---
 libweston/compositor-drm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index a899213..268117d 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -155,8 +155,8 @@ struct drm_output {
 	struct weston_output base;
 	drmModeConnector *connector;
 
-	uint32_t crtc_id;
-	int pipe;
+	uint32_t crtc_id; /* object ID to pass to DRM functions */
+	int pipe; /* index of CRTC in resource array / bitmasks */
 	uint32_t connector_id;
 	drmModeCrtcPtr original_crtc;
 	struct drm_edid edid;
-- 
2.9.3



More information about the wayland-devel mailing list