drm/i915: Remove redundant clear of appgtt
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 08:43:44 +0000 (08:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Feb 2017 10:07:23 +0000 (10:07 +0000)
Upon creation of the va range, it is initialised to point at scratch.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170215084357.19977-10-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c

index 1c78aef5709e86ddba28135fa316efc8b431ec59..52586432d5e8af0bf85232ca41d9a65a130fc185 100644 (file)
@@ -2769,10 +2769,6 @@ int i915_gem_init_aliasing_ppgtt(struct drm_i915_private *i915)
                        goto err_ppgtt;
        }
 
-       ppgtt->base.clear_range(&ppgtt->base,
-                               ppgtt->base.start,
-                               ppgtt->base.total);
-
        i915->mm.aliasing_ppgtt = ppgtt;
 
        WARN_ON(ggtt->base.bind_vma != ggtt_bind_vma);