commit | 5eac3ab45955b32f3a9d89e633918c4d6f133dfa | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Sun Oct 31 08:49:47 2010 +0000 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Sun Oct 31 12:31:30 2010 +0000 |
tree | 302cc30dde39e47dc238bc440bef87a267e9b656 | |
parent | ff75b9bc489710ff223bc0d805bf3b862dc347ea [diff] |
drm/i915: Evict just the purgeable GTT entries on the first pass Take two passes to evict everything whilst searching for sufficient free space to bind the batchbuffer. After searching for sufficient free space using LRU eviction, evict everything that is purgeable and try again. Only then if there is insufficient free space (or the GTT is too badly fragmented) evict everything from the aperture and try one last time. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>