]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/i915_gem_gtt.c
drm/i915: don't open code the pdpe/pml4e clearing
authorMatthew Auld <matthew.auld@intel.com>
Tue, 13 Dec 2016 16:05:12 +0000 (16:05 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 9 Jan 2017 14:43:39 +0000 (16:43 +0200)
commit9e65a37872174bd3615b16fa556377ebf5a3f0cd
tree984e76a1143b35a0eb77bfe30d99d5eaa937c82f
parent5684310760536867cf89efc3162dd2e057fed2ac
drm/i915: don't open code the pdpe/pml4e clearing

Now that it's obvious what the helpers do, we can simplify the code
somewhat by using them when clearing the pdpe/pml4e with the relevant
scratch entry.

Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161213160512.7008-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c