]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5ee0018072b07334bf8438819cfa7164a332a0b
tree944d9c1be08342a08899764cb43284f47bb37014
parent5376a2309d15ce14a64bf0559238e8fc4be71347
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