OSDN Git Service

drm/i915/gtt: Convert vm->scratch into an array
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 09:43:26 +0000 (10:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 11:22:35 +0000 (12:22 +0100)
commitc03cbe4c0a838ce03266a8c579ef8d13181907b6
tree944d9c1be08342a08899764cb43284f47bb37014
parent2776326457562f971b7b38f4683e298e55252ccc
drm/i915/gtt: Convert vm->scratch into an array

Each level has its own scratch. Make the levels more obvious by forgoing
the fancy similarly names and replace them with a number. 0 is the bottom
most level, the physical page used for actual data; 1+ are the page
directories.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190712094327.24437-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h