summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-03-25 10:06:14 -0700
committerEric Anholt <eric@anholt.net>2008-03-25 10:09:54 -0700
commit8cdbd55f8075cd18b563badde35815665d7d053e (patch)
treebb04290fa23888c0df7ecde806c88a6e23b999ac /src/i830_driver.c
parentc02ab432dd7058c700c35eecf6215daf5f262c51 (diff)
Fix 965+ rendering issues with DRI disabled.
The new chips no longer automatically flush the rendering cache, so if we don't flush the RC at blockhandler, the last rendering done may not appear on the screen. This was particularly noticable with a bare Xorg with some missing root weave, and terminals where the last character wouldn't appear until the cursor blinked. A flush in the DRI blockhandler path had hidden this issue for most people.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r--src/i830_driver.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 50d98088..b0bb9dad 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2387,6 +2387,15 @@ I830BlockHandler(int i,
pI830->BlockHandler = pScreen->BlockHandler;
pScreen->BlockHandler = I830BlockHandler;
+ /* Emit a flush of the rendering cache, or on the 965 and beyond
+ * rendering results may not hit the framebuffer until significantly
+ * later. In the direct rendering case this is already done just
+ * after the page flipping updates, so there's no need to duplicate
+ * the effort here.
+ */
+ if (!pI830->noAccel && !pI830->directRenderingEnabled)
+ I830EmitFlush(pScrn);
+
I830VideoBlockHandler(i, blockData, pTimeout, pReadmask);
}