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>
This commit is contained in:
Chris Wilson 2010-06-21 22:05:19 +01:00
parent c4d2005177
commit bebd64d821
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}