drm: Fix primary plane size for stereo doubled modes for legacy setcrtc
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 16 Nov 2015 15:02:34 +0000 (17:02 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 17 Nov 2015 14:16:42 +0000 (16:16 +0200)
commit83926117273cd6d9ffa1b5ff0cc566ad38648b70
tree8364daf56e117c0789397004915756a9e056657f
parent07d3bad6c1210bd21e85d084807ef4ee4ac43a78
drm: Fix primary plane size for stereo doubled modes for legacy setcrtc

Properly double the hdisplay/vdisplay timings that we use as the primary
plane size with stereo doubled modes. Otherwise the modeset gets
rejected on machines where the primary plane must be fullscreen, and on
the rest only the first eye would get a visible plane.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org #v3.19+
Fixes: 042652ed9599 ("drm/atomic-helper: implementatations for legacy interfaces")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1447686157-29607-1-git-send-email-ville.syrjala@linux.intel.com
Testcase: igt/kms_3d
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/drm_atomic_helper.c