commit | f6234c1deedd7d35a09366dba8d92c523ff9cf09 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Tue Apr 07 17:28:17 2015 +0100 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Fri Apr 10 10:58:34 2015 +0200 |
tree | fbaaedb895127c6dd85c60d843dcf7b23d65a203 | |
parent | 149c86e74fe44dcbac5e9f8d145c5fbc5dc21261 [diff] |
drm/i915: Simplify object is-pinned checking for shrinker When looking for viable candidates to shrink, we only want objects that are not pinned. However to do so we performed a double iteration over the vma in the objects, first looking for the pin-count, then looking for allocations. We can do both at once and be slightly more explicit in our validity test. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>