aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/radeon/radeon_connectors.c6
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
207 207
208 for (i = 0; i < 17; i++) { 208 for (i = 0; i < 17; i++) {
209 if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { 209 if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) {
210 if (common_modes[i].w >= native_mode->panel_xres && 210 if (common_modes[i].w > native_mode->panel_xres ||
211 common_modes[i].h >= native_mode->panel_yres) 211 common_modes[i].h > native_mode->panel_yres ||
212 (common_modes[i].w == native_mode->panel_xres &&
213 common_modes[i].h == native_mode->panel_yres))
212 continue; 214 continue;
213 } 215 }
214 if (common_modes[i].w < 320 || common_modes[i].h < 200) 216 if (common_modes[i].w < 320 || common_modes[i].h < 200)