drm/i915: Rework execbuffer pinning
commita7a09aebe8c0dd2b76c7b97018a9c614ddb483a5
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Nov 2010 13:49:09 +0000 (12 13:49 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 Nov 2010 13:30:51 +0000 (24 13:30 +0000)
tree5e6dfa4cde255fd43427d22601303c7030d7f82f
parent919926aeb3e89825093c743dd54f04e42e7d9150
drm/i915: Rework execbuffer pinning

Avoid evicting buffers that will be used later in the batch in order to
make room for the initial buffers by pinning all bound buffers in a
single pass before binding (and evicting for) fresh buffer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c