summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-12-22 08:45:27 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-12-22 08:45:27 -0500
commit9d0f3af7278dc939fd4e6f3ea69d9f488a9fbed7 (patch)
tree705f93f29898bf9ab5b0a44c80860b2793af54b1
parent6e1f5553c6d7e3b5d089af2e3d587efe95936855 (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>
-rw-r--r--src/radeon_modes.c14
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;