drm/i915: Add mock exercise for i915_gem_gtt_insert
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:54 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:46:49 +0000 (20:46 +0000)
commit5f32616edb8d717f5ef99ab9391388a6185afc58
tree8fd1cc09a826863f55c25a2d691fd969a58160da
parente619cd0d223d55b69732d0d61d1c497e506670ac
drm/i915: Add mock exercise for i915_gem_gtt_insert

i915_gem_gtt_insert should allocate from the available free space in the
GTT, evicting as necessary to create space.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-43-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c