From b2dc9886306066891ed5742adf9841fe3355a87e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 21 Jun 2010 22:05:19 +0100 Subject: Also submit any pending flush for *this* batch in the BlockHander. We still need to submit an additional flush if we have further writes since the last flush. Signed-off-by: Chris Wilson (cherry picked from commit bebd64d82121d2b61893e1d0adebda03f4faea61) Signed-off-by: Owain G. Ainsworth --- src/i830_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index b25595b0..30597170 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2165,7 +2165,9 @@ I830BlockHandler(int i, pointer blockData, pointer pTimeout, pointer pReadmask) * rendering results may not hit the framebuffer until significantly * later. */ - intel_batch_submit(scrn, intel->need_mi_flush); + intel_batch_submit(scrn, + intel->need_mi_flush || + !list_is_empty(intel->flush_pixmaps)); drmCommandNone(intel->drmSubFD, DRM_I915_GEM_THROTTLE); } -- cgit v1.2.3