From 47d07b1073c162ec00a8b173b8b6389dc4adbe88 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 6 Dec 2006 10:56:38 -0800 Subject: More LVDS fixed mode fixing: use the EDID DTD's blank length. --- src/i830_bios.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/i830_bios.c b/src/i830_bios.c index 4a1bdb17..a9ef474d 100644 --- a/src/i830_bios.c +++ b/src/i830_bios.c @@ -210,13 +210,14 @@ i830GetLVDSInfoFromBIOS(ScrnInfoPtr pScrn) _H_SYNC_OFF(timing_ptr); fixed_mode->HSyncEnd = fixed_mode->HSyncStart + _H_SYNC_WIDTH(timing_ptr); - fixed_mode->HTotal = fixed_mode->HSyncEnd + - 1; + fixed_mode->HTotal = fixed_mode->HDisplay + + _H_BLANK(timing_ptr); fixed_mode->VSyncStart = fixed_mode->VDisplay + _V_SYNC_OFF(timing_ptr); fixed_mode->VSyncEnd = fixed_mode->VSyncStart + _V_SYNC_WIDTH(timing_ptr); - fixed_mode->VTotal = fixed_mode->VSyncEnd + 1; + fixed_mode->VTotal = fixed_mode->VDisplay + + _V_BLANK(timing_ptr); fixed_mode->Clock = _PIXEL_CLOCK(timing_ptr) / 1000; fixed_mode->type = M_T_PREFERRED; -- cgit v1.2.3