From a893f176dda0b64f7dadfda6bf0331240037851e Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 25 Jul 2008 15:56:35 -0700 Subject: Add call to intel_bufmgr_gem_enable_reuse This instructs GEM to reuse buffer objects and improves the performance of my favorite 'x11perf -aa10text' from about 169k to about 188k glyphs/sec. --- src/i830_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i830_driver.c b/src/i830_driver.c index dcbaa040..a453d907 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2760,6 +2760,7 @@ i830_init_bufmgr(ScrnInfoPtr pScrn) batch_size = 4096; pI830->bufmgr = intel_bufmgr_gem_init(pI830->drmSubFD, batch_size); + intel_bufmgr_gem_enable_reuse(pI830->bufmgr); } else { pI830->bufmgr = intel_bufmgr_fake_init(pI830->fake_bufmgr_mem->offset, pI830->FbBase + -- cgit v1.2.3