drm/i915/gtt: Wrap page_table with page_directory
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 09:43:22 +0000 (10:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 11:22:28 +0000 (12:22 +0100)
commit57a7e30546b2f8de4925406ff55eef11da05615b
tree70595e6940bbf1ef78e9a9470ee227f5f0669b18
parent6eebfe8a10a62139d681e2f1af1386252742278b
drm/i915/gtt: Wrap page_table with page_directory

The page directory extends the page table with the shadow entries. Make
the page directory struct embed the page table for easier code reuse.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190712094327.24437-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ringbuffer.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h