OSDN Git Service

drm/i915: extract bypass-llc check into helper
authorMatthew Auld <matthew.auld@intel.com>
Mon, 18 Oct 2021 17:45:02 +0000 (18:45 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 20 Oct 2021 15:50:18 +0000 (16:50 +0100)
commit30f1dccd295b6865fad9e41873dce2f76998cbae
treee9f86e5b19c9dae9b6505affa8b283dfd01cadf1
parentf7858cb48bf8ee70e71933f1a354a666bb802e54
drm/i915: extract bypass-llc check into helper

It looks like we will need this in some more places, so extract as a
helper.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211018174508.2137279-3-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/gem/i915_gem_shmem.c