summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-21 22:05:19 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-21 22:05:19 +0100
commitbebd64d82121d2b61893e1d0adebda03f4faea61 (patch)
treebee27b3b563942bcd35d8f03567facb76d1bcdac /src
parentc4d200517755e6b0f48d6c6a6ba8dd0ddc883d8b (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/i830_driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 5d5a3c5d..91e5ac97 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -868,7 +868,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);
}