diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-17 13:01:56 +0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-20 13:51:50 +0400 |
commit | 9af90d19f8a166694753b3f0558d3a8bcd66c0b5 (patch) | |
tree | 7433b151f076c956717fec54b2e42f14ef6723d8 /firmware/emi26 | |
parent | 1d7cfea152cae6159aa30ceae38c3eaf13ea083c (diff) | |
download | linux-9af90d19f8a166694753b3f0558d3a8bcd66c0b5.tar.xz |
drm/i915: cache the last object lookup during pin_and_relocate()
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>
Diffstat (limited to 'firmware/emi26')
0 files changed, 0 insertions, 0 deletions