]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Subclass gen6_hw_ppgtt
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jun 2018 08:18:14 +0000 (09:18 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jun 2018 11:57:17 +0000 (12:57 +0100)
commit5afaed0abd9901fb2cf1c685c6c74eb7b22a9354
tree6e79c9aa8ce938658ad5025eaf13bf664dee46a7
parent4549f2878aa8e3559fa6a9c10f27f58666e44d9c
drm/i915/gtt: Subclass gen6_hw_ppgtt

The legacy gen6 ppgtt needs a little more hand holding than gen8+, and
so requires a larger structure. As I intend to make this slightly more
complicated in the future, separate the gen6 from the core gen8 hw
struct by subclassing. This patch moves the gen6 only features out to
gen6_hw_ppgtt and pipes the new type everywhere that needs it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180612081815.3585-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c