]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/i915/gtt: Push allocation to hw ppgtt constructor
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Jun 2018 16:30:40 +0000 (17:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Jun 2018 20:53:13 +0000 (21:53 +0100)
commit17f297b427a32ef5524a494de331c68366e8226d
tree8edba0fd79e95fa371e84f2f803763c2aa7c0965
parent93f2cde2a4f7947f6330ecfb9b27d13e2f4d43af
drm/i915/gtt: Push allocation to hw ppgtt constructor

In the next patch, we will subclass the gen6 hw_ppgtt. In order, for the
two different generations of hw ppgtt stucts to be of different size,
push the allocation down to the constructor.

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/20180607163040.9781-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c