projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70ba2a3
)
drm/radeon/kms: Only add common modes which fit in both panel dimensions.
author
Michel Dänzer
<
[email protected]
>
Tue, 15 Sep 2009 15:09:28 +0000
(17:09 +0200)
committer
Dave Airlie
<
[email protected]
>
Tue, 15 Sep 2009 23:14:56 +0000
(09:14 +1000)
Signed-off-by: Michel Dänzer <
[email protected]
>
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/radeon/radeon_connectors.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_connectors.c
b/drivers/gpu/drm/radeon/radeon_connectors.c
index 04ecb11ebb8cb0b966aa6b435579dd5f7034611f..d2842da8c8b03997c558642dd7ba9d87e1d9dadb 100644
(file)
--- 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)