drm/i915: Initial selftests for exercising eviction
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:52 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:46:47 +0000 (20:46 +0000)
commitf40a7b7558ef95bbd869b3c8268c0b2a239087c9
treedf48ea65328aec16795f2b0e3901cec794ea4521
parent92fdf8d4a39a9545c27b7ec2d5b138ff8cde5f91
drm/i915: Initial selftests for exercising eviction

Very simple tests to just ask eviction to find some free space in a full
GTT and one with some available space.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-41-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_evict.c
drivers/gpu/drm/i915/selftests/i915_gem_evict.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_mock_selftests.h