]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Store scratch page size alongside not in the common struct
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Mar 2019 13:54:27 +0000 (13:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Mar 2019 14:43:16 +0000 (14:43 +0000)
commitebce52771aad2de58b2ff1abbed43365ca863c6c
tree8725bb7568ee99e414d974fc6f074ebc623cb18a
parentcd0d01f8b9631987902df0bb64939a9d7a1a5f02
drm/i915/gtt: Store scratch page size alongside not in the common struct

As the scratch page is the only one to be allocated with variable size,
rather than keep an unused slot in all i915_page_table structs, store it
alongside the vm->scratch_page.

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