summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-04-04 17:13:50 +0100
committerOwain G. Ainsworth <oga@openbsd.org>2011-05-29 23:42:03 +0100
commit98075180f656e23c889dc9f11d57748750719987 (patch)
tree9fa9be67752c1344671f62643596cc581bec5754
parent46dee47d41efe86960e749a63d284910531f3919 (diff)
Remove the unnecessary MI_FLUSH from the flush handler
The kernel will emit any required flushes between the dri client and the ddx, and we do not rely on the MI_FLUSH here for scanout. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit ced747cefb5e697e6caa65296dff728904f52b93) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r--src/intel_driver.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index 15437023..75cd1560 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -2168,17 +2168,8 @@ intel_flush_callback(CallbackListPtr *list,
pointer user_data, pointer call_data)
{
ScrnInfoPtr scrn = user_data;
- intel_screen_private *intel = intel_get_screen_private(scrn);
-
- if (scrn->vtSema) {
- /* Emit a flush of the rendering cache, or on the 965
- * and beyond rendering results may not hit the
- * framebuffer until significantly later.
- */
- intel_batch_submit(scrn,
- intel->need_mi_flush ||
- !list_is_empty(&intel->flush_pixmaps));
- }
+ if (scrn->vtSema)
+ intel_batch_submit(scrn, FALSE);
}
static Bool