]> git.baikalelectronics.ru Git - 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)
commit529d36b5e2d369573c70228e8e7b6f4a76f7db9b
tree8edba0fd79e95fa371e84f2f803763c2aa7c0965
parent005e9578c688d8e181678f83cadd4a60642e459e
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