From: Thomas Wood Date: Thu, 28 Nov 2013 15:35:04 +0000 (+0000) Subject: drm: fix the addition of the side-by-side (half) flag for extra 3D modes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89570eeb1720a95cb600b9d132d4fa65d9ae9012;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm: fix the addition of the side-by-side (half) flag for extra 3D modes Ensure the side-by-side (half) flag is added to any existing flags when adding modes from 3D_Structure_ALL. Signed-off-by: Thomas Wood Reviewed-by: Ville Syrjälä Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 381c698e8a3e..0a1e4a5f4234 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -2701,7 +2701,7 @@ static int add_3d_struct_modes(struct drm_connector *connector, u16 structure, if (structure & (1 << 8)) { newmode = drm_mode_duplicate(dev, &edid_cea_modes[cea_mode]); if (newmode) { - newmode->flags = DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF; + newmode->flags |= DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF; drm_mode_probed_add(connector, newmode); modes++; }