summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-21 22:05:19 +0100
committerOwain G. Ainsworth <oga@openbsd.org>2010-06-21 22:39:38 +0100
commitb2dc9886306066891ed5742adf9841fe3355a87e (patch)
treeec066387fbcd9a83d67dbc79ce1be644dc41be92
parentf129695698d55d82b9260a2d3c7ac211774b6954 (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> (cherry picked from commit bebd64d82121d2b61893e1d0adebda03f4faea61) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-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 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);
}