From 9fcd123aed80430b220fc4141eaa3723d7cb611e Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Thu, 26 Apr 2012 20:35:09 +0800 Subject: [PATCH] glamor_blockhandler: Don't do glFinish every time. To do glfinish every time bring some performance overhead. Signed-off-by: Zhigang Gong --- glamor/glamor.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/glamor/glamor.c b/glamor/glamor.c index cba662347..ea822f318 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -213,7 +213,6 @@ glamor_block_handler(ScreenPtr screen) dispatch = glamor_get_dispatch(glamor_priv); glamor_priv->tick++; dispatch->glFlush(); - dispatch->glFinish(); glamor_fbo_expire(glamor_priv); glamor_put_dispatch(glamor_priv); } @@ -225,7 +224,6 @@ _glamor_block_handler(void *data, OSTimePtr timeout, glamor_screen_private *glamor_priv = data; glamor_gl_dispatch *dispatch = glamor_get_dispatch(glamor_priv); dispatch->glFlush(); - dispatch->glFinish(); glamor_put_dispatch(glamor_priv); }