]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Evict just the purgeable GTT entries on the first pass
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 31 Oct 2010 08:49:47 +0000 (08:49 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 31 Oct 2010 12:31:30 +0000 (12:31 +0000)
commit5eac3ab45955b32f3a9d89e633918c4d6f133dfa
tree302cc30dde39e47dc238bc440bef87a267e9b656
parentff75b9bc489710ff223bc0d805bf3b862dc347ea
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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_evict.c