From: Chris Wilson Date: Sun, 17 Oct 2010 09:01:56 +0000 (+0100) Subject: drm/i915: cache the last object lookup during pin_and_relocate() X-Git-Tag: v2.6.37-rc1~92^2~11^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af90d19f8a166694753b3f0558d3a8bcd66c0b5;p=pandora-kernel.git 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 --- Reading git-diff-tree failed