diff options
author | Michel Dänzer | 2009-09-15 17:09:28 +0200 |
---|---|---|
committer | Dave Airlie | 2009-09-16 01:14:56 +0200 |
commit | fb1fbf8e098cd4cd2c1dece3dc8f15e7de82170a (patch) | |
tree | b897b2baa02d2dbc6e851f271cbf8d71fa8a9809 /drivers/gpu/drm/radeon | |
parent | drm/radeon/kms: add 32/64 ioctl support. (diff) | |
download | kernel-qcow2-linux-fb1fbf8e098cd4cd2c1dece3dc8f15e7de82170a.tar.gz kernel-qcow2-linux-fb1fbf8e098cd4cd2c1dece3dc8f15e7de82170a.tar.xz kernel-qcow2-linux-fb1fbf8e098cd4cd2c1dece3dc8f15e7de82170a.zip |
drm/radeon/kms: Only add common modes which fit in both panel dimensions.
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_connectors.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 04ecb11ebb8c..d2842da8c8b0 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c @@ -207,8 +207,10 @@ static void radeon_add_common_modes(struct drm_encoder *encoder, struct drm_conn for (i = 0; i < 17; i++) { if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { - if (common_modes[i].w >= native_mode->panel_xres && - common_modes[i].h >= native_mode->panel_yres) + if (common_modes[i].w > native_mode->panel_xres || + common_modes[i].h > native_mode->panel_yres || + (common_modes[i].w == native_mode->panel_xres && + common_modes[i].h == native_mode->panel_yres)) continue; } if (common_modes[i].w < 320 || common_modes[i].h < 200) |