drm/i915: use current mode if the size matches the preferred mode 22/22222/3
authorKristian Høgsberg <hoegsberg@gmail.com>
Tue, 25 Feb 2014 22:33:09 +0000 (14:33 -0800)
committerJin Song <jin.kyu.song@linux.intel.com>
Fri, 30 May 2014 03:15:49 +0000 (20:15 -0700)
commit6f71ab91a680a083b71ec88c0fc601ddd64f048a
treea816a09e708f6861ff5ca6383e2681e0fe72502e
parent467b7a842012692a26cdd984bb5369cfbce062c1
drm/i915: use current mode if the size matches the preferred mode

The BIOS may set a native mode that doesn't quite match the preferred
mode timings.  It should be ok to use however if it uses the same size,
so try to avoid a mode set in that case.

Signed-off-by: Kristian Høgsberg <hoegsberg@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Change-Id: I8b6fecd1522013dfbd1ae975ac6c6557522348e2
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/i915/intel_fbdev.c
include/drm/drm_crtc.h