drm/i915: Remove unnecessary gen8_clamp_pd
authorMichel Thierry <michel.thierry@intel.com>
Wed, 29 Jul 2015 16:23:45 +0000 (17:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Aug 2015 16:16:16 +0000 (18:16 +0200)
commit09120d4e88b13967d44d46280fb74d3ac4ac2f73
tree45ed3a7fa380c8a367b6fdfd2e22413db795b265
parent75067ddecf21271631bc018d2fb23ddd09b66aae
drm/i915: Remove unnecessary gen8_clamp_pd

gen8_clamp_pd clamps to the next page directory boundary, but the macro
gen8_for_each_pde already has a check to stop at the page directory
boundary.

Furthermore, i915_pte_count also restricts to the next page table
boundary.

v2: Rebase after Mika's ppgtt cleanup / scratch merge patch series.

Suggested-by: Akash Goel <akash.goel@intel.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: "Akash Goel" <akash.goel@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h