diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-10-13 12:48:44 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-15 18:47:01 -0400 |
commit | dfdd646773941bb6b22c3898a26a109e57c872a2 (patch) | |
tree | c0e363e3865361f9f486d46c53dfe2772ec3cc4a /drivers/gpu | |
parent | ceefedd8e8a80b743fa0b6d6b1992be7029a9efb (diff) |
drm/radeon/kms: limit default tv modes to <= 1024x768
fixes fdo bug 24496
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_connectors.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 5b6067aa08bd..ce3a785a633b 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c | |||
@@ -223,6 +223,11 @@ static void radeon_add_common_modes(struct drm_encoder *encoder, struct drm_conn | |||
223 | }; | 223 | }; |
224 | 224 | ||
225 | for (i = 0; i < 17; i++) { | 225 | for (i = 0; i < 17; i++) { |
226 | if (radeon_encoder->devices & (ATOM_DEVICE_TV_SUPPORT)) { | ||
227 | if (common_modes[i].w > 1024 || | ||
228 | common_modes[i].h > 768) | ||
229 | continue; | ||
230 | } | ||
226 | if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { | 231 | if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { |
227 | if (common_modes[i].w > native_mode->hdisplay || | 232 | if (common_modes[i].w > native_mode->hdisplay || |
228 | common_modes[i].h > native_mode->vdisplay || | 233 | common_modes[i].h > native_mode->vdisplay || |