[PATCH xserver 4/4] glamor: Call glamor_block_handler() in _glamor_block_handler()
Max Staudt
mstaudt at suse.de
Fri Jul 15 13:46:24 UTC 2016
Deduplify code and make sure glamor_priv->tick++ actually happens.
This ensures that GLAMOR's BO cache is expunged every now and then
even if it's not full yet.
Note: glamor_block_handler() contains both lines removed in this
change, so the old functionality persists.
Signed-off-by: Max Staudt <mstaudt at suse.de>
---
glamor/glamor.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/glamor/glamor.c b/glamor/glamor.c
index 9c6a0d1..77bc150 100644
--- a/glamor/glamor.c
+++ b/glamor/glamor.c
@@ -241,8 +241,7 @@ _glamor_block_handler(ScreenPtr screen, void *timeout, void *readmask)
glamor_priv->saved_procs.block_handler = screen->BlockHandler;
screen->BlockHandler = _glamor_block_handler;
- glamor_make_current(glamor_priv);
- glFlush();
+ glamor_block_handler(screen);
}
static void
--
2.6.6
More information about the xorg-devel
mailing list