drm/i915: Simplify fence finding
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Apr 2012 14:31:28 +0000 (15:31 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Apr 2012 11:20:35 +0000 (13:20 +0200)
As the fences are stored in LRU order, we can simply reuse the oldest if
we do not have an unused register.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

No differences found