]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Introduce drm_i915_gem_object_ops
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Jun 2012 14:38:42 +0000 (15:38 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Sep 2012 12:22:55 +0000 (14:22 +0200)
commit7e463be3e62003693965b8094c8d09cc24ab2c15
treed1b6fae7751c04ce051016019b4d4ebd0ee0d48c
parent2b220f1dfd92b8e018cc0ff625f6d14c9f84a2cb
drm/i915: Introduce drm_i915_gem_object_ops

In order to specialise functions depending upon the type of object, we
can attach vfuncs to each object via a new ->ops pointer.

For instance, this will be used in future patches to only bind pages from
a dma-buf for the duration that the object is used by the GPU - and so
prevent them from pinning those pages for the entire of the object.

v2: Bonus comments.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-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
drivers/gpu/drm/i915/i915_gem_dmabuf.c