]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Protect active fences on i915
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Feb 2009 14:26:47 +0000 (14:26 +0000)
committerEric Anholt <eric@anholt.net>
Wed, 11 Mar 2009 17:33:28 +0000 (10:33 -0700)
commit027db87c14e3bde8d39dbce554f32376beeb540a
treebb8ae65f7b4bdfcb6464cf20a57251a063e63c49
parentb7af8def7f1b1beed879d78be16093ce2baff1d6
drm/i915: Protect active fences on i915

The i915 also uses the fence registers for GPU access to tiled buffers so
we cannot reallocate one whilst it is on the active list. By performing a
LRU scan of the fenced buffers we also avoid waiting the possibility of
waiting on a pinned, or otherwise unusable, buffer.

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