OSDN Git Service

drm/i915: Use bound list for inactive shrink
authorBen Widawsky <ben@bwidawsk.net>
Wed, 31 Jul 2013 23:59:57 +0000 (16:59 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 Aug 2013 17:04:09 +0000 (19:04 +0200)
commitfcb4a57805e04dee04f736c25a5648ec7bebe30f
tree083855e13320547eb0cd72dbef228b74a397fcb4
parenta70a3148b0c61cb7c588ea650db785b261b378a3
drm/i915: Use bound list for inactive shrink

Do to the move active/inactive lists, it no longer makes sense to use
them for shrinking, since shrinking isn't VM specific (such a need may
also exist, but doesn't yet).

What we can do instead is use the global bound list to find all objects
which aren't active.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c