From: Michel Dänzer <[email protected]>

Signed-off-by: Michel Dänzer <[email protected]>
---
 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 6435861..5ee81b6 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)
-- 
1.6.3.3


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to