]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/gem: Refactor tests on obj->ops->flags
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Oct 2019 12:30:14 +0000 (13:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Oct 2019 14:30:44 +0000 (15:30 +0100)
commit3cbad5d7774953d36c09cca295e6b84e61b03ae7
treeb516afa6952b2daf5f1c563783091cf7f1e5cd31
parentdfe324f34c53af095bfe54b322e1a338421a6b0e
drm/i915/gem: Refactor tests on obj->ops->flags

We repeat obj->ops->flags in our object checks, so pull that into its
own little helper for clarity.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191002123014.1545-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_object.h