[PATCH weston v5 01/42] compositor-drm: Comment struct members
Daniel Stone
daniels at collabora.com
Wed Nov 16 14:24:53 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>
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