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)
commitb9bcd14a2b91be73d694b3e809d54a287232839e
tree6c9b82dd339b796efe8c2ad61003bd164ccf6bd4
parent91df09d92ad82c8778ca218097bf827f154292ca
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