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)
commit8fe301add51206ca53576471059393b925f30124
tree2abd97cc5fdd9787ab1ccfea1f60c5df502e2ef9
parent1c293ea3b1d1c72f1fc5f398e03232d8d302bd23
drm/i915: Simplify fence finding

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>
drivers/gpu/drm/i915/i915_gem.c