]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: prepare for fair lru eviction
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 7 Aug 2010 10:01:21 +0000 (11:01 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 9 Aug 2010 18:24:32 +0000 (11:24 -0700)
commit8e8e8f87e7e0892dcf27d498586bf04ba1efd171
tree95694d7fdef710345c43dd0d2364eee1377e87d2
parent4c06f64ac7edb6882f2c3f61cb9a248f5fa317e1
drm/i915: prepare for fair lru eviction

This does two little changes:

- Add an alignment parameter for evict_something. It's not really great to
  whack a carefully sized hole into the gtt with the wrong alignment.
  Especially since the fallback path is a full evict.

- With the inactive scan stuff we need to evict more that one object, so
  move the unbind call into the helper function that scans for the object
  to be evicted, too.  And adjust its name.

No functional changes in this patch, just preparation.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c