summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_edid.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-09-25 17:45:28 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-01 07:45:31 +0200
commit271302120659ba7d2ab7bacfb0726444e26ecddc (patch)
tree793b108ec0c35b221c099c837e0f12347a3d5b62 /drivers/gpu/drm/drm_edid.c
parentdrm: Make drm_match_cea_mode() return the underlying 2D VIC for 3d modes (diff)
downloadlinux-271302120659ba7d2ab7bacfb0726444e26ecddc.tar.xz
linux-271302120659ba7d2ab7bacfb0726444e26ecddc.zip
drm: Carry over the stereo flags when adding the alternate mode
This allows to expose the alternate clock versions of the stereo modes. 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 'drivers/gpu/drm/drm_edid.c')
-rw-r--r--drivers/gpu/drm/drm_edid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 48f1746f67d8..c24af1d6cb47 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -2507,6 +2507,9 @@ add_alternate_cea_modes(struct drm_connector *connector, struct edid *edid)
if (!newmode)
continue;
+ /* Carry over the stereo flags */
+ newmode->flags |= mode->flags & DRM_MODE_FLAG_3D_MASK;
+
/*
* The current mode could be either variant. Make
* sure to pick the "other" clock for the new mode.