]> git.baikalelectronics.ru Git - kernel.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)
commita68f4c9d70caa0226c94cfa87adae42bd81e23ab
treeb516afa6952b2daf5f1c563783091cf7f1e5cd31
parente8d10865c12c95860474940f59c0795971dfa9ee
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