From e8aa9cedbfca09e22d46ec8882b9bebb3eb83022 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Tue, 27 Dec 2011 17:09:16 +0800 Subject: [PATCH] uxa/glamor: Remove extraneous flush When glamor is enabled, a pixmap will not be accessed by UXA's accelerated functions. Only unaccelerated functions may access those pixmaps, and before each unaccelerated rendering, it calls uxa_prepare_access which will do a glFlush. Combined with a flush before sending to DRI clients, we no longer need to flush after every operation. Signed-off-by: Zhigang Gong Signed-off-by: Chris Wilson --- src/intel_glamor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/intel_glamor.c b/src/intel_glamor.c index 2b56ae54..669b1b8e 100644 --- a/src/intel_glamor.c +++ b/src/intel_glamor.c @@ -135,7 +135,6 @@ intel_glamor_finish_access(PixmapPtr pixmap, uxa_access_t access) break; case UXA_GLAMOR_ACCESS_RW: intel_glamor_need_flush(&pixmap->drawable); - glamor_block_handler(pixmap->drawable.pScreen); break; default: ErrorF("Invalid access mode %d\n", access);