diff options
author | Jesse Barnes <jbarnes@hobbes.lan> | 2008-07-31 13:07:20 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-07-31 13:07:20 -0700 |
commit | 2049ba211e7cdc383976c09f52c2b43acdd59481 (patch) | |
tree | b2a5edd024cb2eb2676b2de60c86b52a00e4dec6 /src/i830_display.c | |
parent | 42fb06f3f14fbec070350cf48361be4a0be0af04 (diff) |
Update DSPARB while planes are still off
This avoids the flickering people reported in the 2.4.0 release.
Diffstat (limited to 'src/i830_display.c')
-rw-r--r-- | src/i830_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_display.c b/src/i830_display.c index 61764475..2a267f1c 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -1477,6 +1477,8 @@ i830_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode, /* Wait for the clocks to stabilize. */ usleep(150); + i830_update_dsparb(pScrn); + OUTREG(htot_reg, (adjusted_mode->CrtcHDisplay - 1) | ((adjusted_mode->CrtcHTotal - 1) << 16)); OUTREG(hblank_reg, (adjusted_mode->CrtcHBlankStart - 1) | @@ -1510,8 +1512,6 @@ i830_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode, i830WaitForVblank(pScrn); - i830_update_dsparb(pScrn); - /* Clear any FIFO underrun status that may have occurred normally */ OUTREG(pipestat_reg, INREG(pipestat_reg) | FIFO_UNDERRUN); } |