OSDN Git Service

drm/i915: Move stolen memory handling into i915_gem_stolen
authorJouni Högander <jouni.hogander@intel.com>
Wed, 14 Jun 2023 05:17:29 +0000 (08:17 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 7 Aug 2023 05:26:45 +0000 (08:26 +0300)
commit1d47074cb68cf2423b6215b82e43fedaa0ce25d0
treec36d347328f2d19458ae0be5a9b5f5ae0d02f4da
parent26e60294e8eacedc8ebb33405b2c375fd80e0900
drm/i915: Move stolen memory handling into i915_gem_stolen

We are preparing for Xe. Xe stolen memory handling differs from i915 so we
want to move stolen memory handling details into i915_gem_stolen.

Also add a common type for fbc compressed fb and use it from fbc code
instead of underlying type directly. This way we can have common type
i915_stolen_fb for both i915 and Xe.

v2: Fix couple of checkpatch warnings

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230614051731.745821-2-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/gem/i915_gem_stolen.h