drm/i915/gtt: Record the scratch pte
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Oct 2018 18:27:20 +0000 (18:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Oct 2018 09:10:20 +0000 (09:10 +0000)
commitdaf3dc0f9b0044e25ac96d1b9c65dca4df1aa99f
treefcb1011819af08b72c0b3780711522f75e569aac
parent4c8d351d0b4936ae93ed0febb7bf0ee3044e49ba
drm/i915/gtt: Record the scratch pte

Record the scratch PTE encoding upon creation rather than recomputing
the bits everytime. This is important for the next patch where we forgo
having a valid scratch page with which we may compute the bits and so
require keeping the PTE value instead.

v2: Fix up scrub_64K to use scratch_pte as well.

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