summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2006-12-06 10:56:38 -0800
committerEric Anholt <eric@anholt.net>2006-12-06 10:56:38 -0800
commit47d07b1073c162ec00a8b173b8b6389dc4adbe88 (patch)
tree5dbeab37722ed520d2f331309d2c594eeb10cb75
parent727bf1cbf72362edcbdd68001a3558fd2b2b4eca (diff)
More LVDS fixed mode fixing: use the EDID DTD's blank length.
-rw-r--r--src/i830_bios.c7
1 files 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;