]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Provide a cheap ggtt vma lookup
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 24 Sep 2013 16:57:57 +0000 (09:57 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:21 +0000 (07:45 +0200)
commitf9a2d7fd18bf737acf06c4d474bcfce975a770f0
tree4f2232391cd39f6a9dc5887af634f1c045d6074e
parent57ea90d7b38283c28b34502ff76ddd5a26ba3090
drm/i915: Provide a cheap ggtt vma lookup

"We do fairly often lookup the ggtt vma for an obj." - Chris Wilson. As
such, provide a function to offer slightly cheaper access to the vma.
Not performance tested. By my quick estimation it saves at least 3
pointer dereferences from the existing mechanism.

This patch mostly matches code from Chris in
<20130911221430.GB7825@nuc-i3427.alporthouse.com>

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c