drm/i915: Embed the scratch page struct into each VM
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Aug 2016 07:44:30 +0000 (08:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Aug 2016 11:19:52 +0000 (12:19 +0100)
commit8bcdd0f756b7bf13c340a319ad6748ed6386a944
treeb305bf9502408f8806e17320f29cb7dfac3f65b8
parent36cdd0138b7f51f204df871c548b65ea2d59522d
drm/i915: Embed the scratch page struct into each VM

As the scratch page is no longer shared between all VM, and each has
their own, forgo the small allocation and simply embed the scratch page
struct into the i915_address_space.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20160822074431.26872-2-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h