diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-01-04 06:53:18 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-01-05 03:43:33 -0500 |
commit | 4cd9fa529d77dde8f760adb3d934dfac6e169b1e (patch) | |
tree | 74c7c0b4f7410d5905449e0b12532333cc669b9c /include/drm | |
parent | 5459a2ad9da0c93161f31cfda5d39e23b64d50f8 (diff) |
drm/atomic: add connector mask to drm_crtc_state.
It can be useful to iterate over connectors without grabbing
connection_mutex. It can also be used to see how many connectors
are on a crtc without iterating over the list.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1451908400-25147-4-git-send-email-maarten.lankhorst@linux.intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 3b040b355472..e3c4d486e1af 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -306,6 +306,7 @@ struct drm_plane_helper_funcs; | |||
306 | * @active_changed: crtc_state->active has been toggled. | 306 | * @active_changed: crtc_state->active has been toggled. |
307 | * @connectors_changed: connectors to this crtc have been updated | 307 | * @connectors_changed: connectors to this crtc have been updated |
308 | * @plane_mask: bitmask of (1 << drm_plane_index(plane)) of attached planes | 308 | * @plane_mask: bitmask of (1 << drm_plane_index(plane)) of attached planes |
309 | * @connector_mask: bitmask of (1 << drm_connector_index(connector)) of attached connectors | ||
309 | * @last_vblank_count: for helpers and drivers to capture the vblank of the | 310 | * @last_vblank_count: for helpers and drivers to capture the vblank of the |
310 | * update to ensure framebuffer cleanup isn't done too early | 311 | * update to ensure framebuffer cleanup isn't done too early |
311 | * @adjusted_mode: for use by helpers and drivers to compute adjusted mode timings | 312 | * @adjusted_mode: for use by helpers and drivers to compute adjusted mode timings |
@@ -339,6 +340,8 @@ struct drm_crtc_state { | |||
339 | */ | 340 | */ |
340 | u32 plane_mask; | 341 | u32 plane_mask; |
341 | 342 | ||
343 | u32 connector_mask; | ||
344 | |||
342 | /* last_vblank_count: for vblank waits before cleanup */ | 345 | /* last_vblank_count: for vblank waits before cleanup */ |
343 | u32 last_vblank_count; | 346 | u32 last_vblank_count; |
344 | 347 | ||