drm/i915: Add mock exercise for i915_gem_gtt_reserve
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:53 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:46:48 +0000 (20:46 +0000)
commite619cd0d223d55b69732d0d61d1c497e506670ac
tree5e286a53faa42f7bcc2dbeb14ae5710aaf0f1beb
parentf40a7b7558ef95bbd869b3c8268c0b2a239087c9
drm/i915: Add mock exercise for i915_gem_gtt_reserve

i915_gem_gtt_reserve should put the node exactly as requested in the
GTT, evicting as required.

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-42-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
drivers/gpu/drm/i915/selftests/i915_mock_selftests.h