]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extract checking for backing struct pages to a helper
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Jun 2016 14:05:51 +0000 (15:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Jun 2016 14:57:54 +0000 (15:57 +0100)
commit35d84448b29b1f16aeb50a9eaca4cdcd09c3723c
tree6c9b82dd339b796efe8c2ad61003bd164ccf6bd4
parentc4fda1a1a599ed990bdb34f95c6b2791e995ed46
drm/i915: Extract checking for backing struct pages to a helper

Currently to see if an object is backed by struct pages (as opposed to
being a simple pointer to stolen memory, for example) we do a manual
check on the obj->ops->flags. This is quite shouty and before adding
more checks in future, we should make it a bit calmer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466431552-17860-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c