diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-12-22 08:45:27 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-12-22 08:45:27 -0500 |
commit | 9d0f3af7278dc939fd4e6f3ea69d9f488a9fbed7 (patch) | |
tree | 705f93f29898bf9ab5b0a44c80860b2793af54b1 /src/radeon_modes.c | |
parent | 6e1f5553c6d7e3b5d089af2e3d587efe95936855 (diff) |
radeon: add cvt timing if we only have panel w/h
fixes mac laptops without an edid
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/radeon_modes.c')
-rw-r--r-- | src/radeon_modes.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/radeon_modes.c b/src/radeon_modes.c index 3e3d4c80..e440b59b 100644 --- a/src/radeon_modes.c +++ b/src/radeon_modes.c @@ -169,6 +169,20 @@ static DisplayModePtr RADEONFPNativeMode(xf86OutputPtr output) xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Added native panel mode: %dx%d\n", native_mode->PanelXRes, native_mode->PanelYRes); + } else if (native_mode->PanelXRes != 0 && + native_mode->PanelYRes != 0) { + + new = xf86CVTMode(native_mode->PanelXRes, native_mode->PanelYRes, 60.0, TRUE, FALSE); + + if (new) { + new->type = M_T_DRIVER | M_T_PREFERRED; + + new->next = NULL; + new->prev = NULL; + } + + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Added native panel mode using CVT: %dx%d\n", + native_mode->PanelXRes, native_mode->PanelYRes); } return new; |