summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/xf86-video-i810/files/2.4.0/0001-Update-DSPARB-while-planes-are-still-off.patch')
-rw-r--r--x11-drivers/xf86-video-i810/files/2.4.0/0001-Update-DSPARB-while-planes-are-still-off.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-i810/files/2.4.0/0001-Update-DSPARB-while-planes-are-still-off.patch b/x11-drivers/xf86-video-i810/files/2.4.0/0001-Update-DSPARB-while-planes-are-still-off.patch
new file mode 100644
index 000000000000..acfb71f0f8f0
--- /dev/null
+++ b/x11-drivers/xf86-video-i810/files/2.4.0/0001-Update-DSPARB-while-planes-are-still-off.patch
@@ -0,0 +1,32 @@
+From c0c63c9d8329d93288dc12a05fe0ba3cf71fd5af Mon Sep 17 00:00:00 2001
+From: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Thu, 31 Jul 2008 13:07:20 -0700
+Subject: [PATCH] Update DSPARB while planes are still off
+
+This avoids the flickering people reported in the 2.4.0 release.
+
+diff --git a/src/i830_display.c b/src/i830_display.c
+index 6176447..2a267f1 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);
+ }
+--
+1.5.6.4
+