Skip to content

Commit

Permalink
drm/i915: Remove redundant clear of appgtt
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chris Wilson committed Feb 15, 2017
1 parent 52c126e commit f0a2297
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/gpu/drm/i915/i915_gem_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0a2297

Please sign in to comment.