From 9d7929436488969ca4fd1fef4d2e92be5e1a93aa Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 20 Jun 2008 00:23:45 -0700 Subject: [PATCH] Flush pending batch in block handler Make sure any pending rendering commands are delivered to the hardware before the server goes to sleep. --- src/i830_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index 580cbbc0..5525aec4 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2496,7 +2496,7 @@ I830BlockHandler(int i, * rendering results may not hit the framebuffer until significantly * later. */ - if (!pI830->noAccel && pI830->need_mi_flush) + if (!pI830->noAccel && (pI830->need_mi_flush || pI830->batch_used)) I830EmitFlush(pScrn); /* Flush the batch, so that any rendering is executed in a timely