diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-13 11:20:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-13 11:27:17 +0000 |
commit | 1128825efb3179a5a5d951fa24db6b769ee41219 (patch) | |
tree | d1fbfb84e81d4d2b00c0bfbcf939d013c1fca5f9 /src/intel_driver.c | |
parent | db7c9e8561afcc1ca7ab16b3bf2d5b49938e26d9 (diff) |
uxa: Wakeup 3s after the last rendering to reap the bo-cache
libdrm expires its bo 2s after entry into the cache, but we need to free
a buffer to trigger the reaper. So schedule a timer event to trigger 3s
after the last rendering is submitted to free any resident bo during
long periods of idleness.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r-- | src/intel_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c index 2828ed63..066aa5f2 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -1200,6 +1200,9 @@ static Bool I830CloseScreen(int scrnIndex, ScreenPtr screen) intel_glamor_close_screen(screen); + TimerFree(intel->cache_expire); + intel->cache_expire = NULL; + if (intel->uxa_driver) { uxa_driver_fini(screen); free(intel->uxa_driver); |