aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-09-25 11:45:21 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-01 01:45:27 -0400
commit4aa17cf0d889cfc984b68a78ae02070cef21bb6b (patch)
tree7e9fd3b02c478a4899ee80a87317450787259bdd /include/drm/drm_crtc.h
parent1c0814fed3a558146402713028cb7114734ec172 (diff)
drm: Add HDMI stereo 3D flags to struct drm_mode_modeinfo
HDMI 1.4a defines a few layouts that we'd like to expose. This commits add new modeinfo flags that can be used to list the supported stereo layouts (when querying the list of modes) and to set a given stereo 3D mode (when setting a mode). v2: Add a drm_mode_is_stereo() helper Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Acked-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 24f499569a2f..825d6fad0981 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -180,6 +180,20 @@ struct drm_display_mode {
180 int hsync; /* in kHz */ 180 int hsync; /* in kHz */
181}; 181};
182 182
183#define DRM_MODE_FLAG_3D_MASK (DRM_MODE_FLAG_3D_FRAME_PACKING | \
184 DRM_MODE_FLAG_3D_FIELD_ALTERNATIVE | \
185 DRM_MODE_FLAG_3D_LINE_ALTERNATIVE | \
186 DRM_MODE_FLAG_3D_SIDE_BY_SIDE_FULL | \
187 DRM_MODE_FLAG_3D_L_DEPTH | \
188 DRM_MODE_FLAG_3D_L_DEPTH_GFX_GFX_DEPTH | \
189 DRM_MODE_FLAG_3D_TOP_AND_BOTTOM | \
190 DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF)
191
192static inline bool drm_mode_is_stereo(const struct drm_display_mode *mode)
193{
194 return mode->flags & DRM_MODE_FLAG_3D_MASK;
195}
196
183enum drm_connector_status { 197enum drm_connector_status {
184 connector_status_connected = 1, 198 connector_status_connected = 1,
185 connector_status_disconnected = 2, 199 connector_status_disconnected = 2,