diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-10 12:06:56 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-10 12:07:12 +0100 |
commit | 9cc6f7ccc55cc11f47b3b7d626c9f5a7c1327d57 (patch) | |
tree | 6c2269b920ed35b6f99a84f330a8a0bbf1227fae | |
parent | 102d11906a672140bac099e7bd1b35345d13a2fc (diff) |
sna: Release the freed bo cache upon expire
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 581e3c80..2a8b3cd0 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1968,6 +1968,12 @@ bool kgem_expire_cache(struct kgem *kgem) bool idle; unsigned int i; + while (__kgem_freed_bo) { + bo = __kgem_freed_bo; + __kgem_freed_bo = *(struct kgem_bo **)bo; + free(bo); + } + kgem_retire(kgem); if (kgem->wedged) kgem_cleanup(kgem); |