diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-21 22:05:19 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-21 22:05:19 +0100 |
commit | bebd64d82121d2b61893e1d0adebda03f4faea61 (patch) | |
tree | bee27b3b563942bcd35d8f03567facb76d1bcdac /src/i830_driver.c | |
parent | c4d200517755e6b0f48d6c6a6ba8dd0ddc883d8b (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/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 4 |
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); } |