summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-10-17 11:01:56 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-20 11:51:50 +0200
commit9af90d19f8a166694753b3f0558d3a8bcd66c0b5 (patch)
tree7433b151f076c956717fec54b2e42f14ef6723d8 /drivers/crypto
parentdrm/i915: Do interrupible mutex lock first to avoid locking for unreference (diff)
downloadlinux-9af90d19f8a166694753b3f0558d3a8bcd66c0b5.tar.xz
linux-9af90d19f8a166694753b3f0558d3a8bcd66c0b5.zip
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 'drivers/crypto')
0 files changed, 0 insertions, 0 deletions