Flush pending batch in block handler

Make sure any pending rendering commands are delivered to the hardware
before the server goes to sleep.
This commit is contained in:
Keith Packard 2008-06-20 00:23:45 -07:00
parent 2f8a0aa8cd
commit 9d79294364
1 changed files with 1 additions and 1 deletions

View File

@ -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