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)
commita2ac437bc0feb15e9bd4c0bfb24e9fd9b133416d
tree8725bb7568ee99e414d974fc6f074ebc623cb18a
parent4f1836453e42edcc7bb3c53c6c38534697ca77b0
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