summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-04-04 17:13:50 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-04-04 17:14:38 +0100
commitced747cefb5e697e6caa65296dff728904f52b93 (patch)
tree9312b92044518e07b431b2e8fc7226a6e7a83b34
parent79444291a39c42039192a5baa3a71d52300cf4ee (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>
-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 6b610b85..84497185 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -757,17 +757,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);
}
#if HAVE_UDEV