drm/i915/gtt: Split gen8_ppgtt_clear_pte_range
authorMichał Winiarski <michal.winiarski@intel.com>
Thu, 13 Oct 2016 12:02:41 +0000 (14:02 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Oct 2016 11:40:33 +0000 (12:40 +0100)
commitd209b9c3cd281e4543e1150d173388b6d8f29a42
tree5b93769fb37dc3be8759aebb5af69d2a7d253025
parent4fb84d991ef2172d425234391d7215978345f6cd
drm/i915/gtt: Split gen8_ppgtt_clear_pte_range

Let's use more top-down approach, where each gen8_ppgtt_clear_* function
is responsible for clearing the struct passed as an argument and calling
relevant clear_range functions on lower-level tables.
Doing this rather than operating on PTE ranges makes the implementation
of shrinking page tables quite simple.

v2: Drop min when calculating num_entries, no negation in 48b ppgtt
check, no newlines in vars block (Joonas)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1476360162-24062-2-git-send-email-michal.winiarski@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c