Skip to content

Commit

Permalink
drm/i915: cache the last object lookup during pin_and_relocate()
Browse files Browse the repository at this point in the history
The most frequent relocation within a batchbuffer is a contiguous sequence
of vertex buffer relocations, for which we can virtually eliminate the
drm_gem_object_lookup() overhead by caching the last handle to object
translation.

In doing so we refactor the pin and relocate retry loop out of
do_execbuffer into its own helper function and so improve the error
paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Oct 20, 2010
1 parent 1d7cfea commit 9af90d1
Showing 1 changed file with 144 additions and 171 deletions.
Loading

0 comments on commit 9af90d1

Please sign in to comment.