xf86-video-intel: Branch 'modesetting' - src/i830_driver.c
Eric Anholt
anholt at kemper.freedesktop.org
Mon Apr 24 21:42:43 EEST 2006
src/i830_driver.c | 4 ++++
1 files changed, 4 insertions(+)
New commits:
diff-tree effab21c3d108fac7a4e28ae4dabb0b5f74a5380 (from bcb441225d1365435bc3373901180de944298e86)
Author: Eric Anholt <anholt at FreeBSD.org>
Date: Mon Apr 24 11:42:24 2006 -0700
Set displayWidth to a sufficient value for the modes we come up with for LVDS.
Reported by: Lukáš Hejtmánek
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 8fba83c..3f67106 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1693,6 +1693,10 @@ static int i830ValidateFPModes(ScrnInfoP
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Total number of valid FP mode(s) found: %d\n", count);
+ /* Adjust the display pitch to fit the modes we've come up with. */
+ pScrn->displayWidth = MAX(pScrn->displayWidth, pScrn->virtualX);
+ pScrn->displayWidth = (pScrn->displayWidth + 63) & ~63;
+
return count;
}
More information about the xorg-commit
mailing list