summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-01-29 17:10:14 -0800
committerEric Anholt <eric@anholt.net>2007-01-29 17:10:39 -0800
commit9da1791eeca446cd59e2e7d0803e8a7920dbbea5 (patch)
treea3c2a60010bfe96d878a3ac891850f1f88d74829
parent67c6a490e63f6997f8198bc3ab180a1af097fe86 (diff)
Restore a few important lines from 89ace3e81fe72075b1709b073c05532f13b7f0d1
Typical results were failure to sync, and a black screen.
-rw-r--r--src/i830_xf86Modes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i830_xf86Modes.c b/src/i830_xf86Modes.c
index 7403a4c2..a08d5a47 100644
--- a/src/i830_xf86Modes.c
+++ b/src/i830_xf86Modes.c
@@ -148,6 +148,11 @@ xf86SetModeCrtc(DisplayModePtr p, int adjustFlags)
p->CrtcVSyncEnd *= p->VScan;
p->CrtcVTotal *= p->VScan;
}
+ p->CrtcVBlankStart = min(p->CrtcVSyncStart, p->CrtcVDisplay);
+ p->CrtcVBlankEnd = max(p->CrtcVSyncEnd, p->CrtcVTotal);
+ p->CrtcHBlankStart = min(p->CrtcHSyncStart, p->CrtcHDisplay);
+ p->CrtcHBlankEnd = max(p->CrtcHSyncEnd, p->CrtcHTotal);
+
p->CrtcHAdjusted = FALSE;
p->CrtcVAdjusted = FALSE;
}