drm/i915: Mock the GEM device for self-testing
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:17 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:28 +0000 (20:45 +0000)
commit66d9cb5d805af70229ffe6f961bf06adc511f469
treeaa998422bcaafecdaf64953968c2d1e268e3340f
parente62e8ad1ba5701e0e0c1371041cbb677f75ba3fb
drm/i915: Mock the GEM device for self-testing

A simulacrum of drm_i915_private to let us pretend interactions with the
device.

v2: Tidy init error paths

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-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/mock_drm.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_drm.h [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_gem_device.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_gem_device.h [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/mock_gem_object.h [new file with mode: 0644]