]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit993c92fedee005ded2f17b16b6153942ba714e7e
treeaa998422bcaafecdaf64953968c2d1e268e3340f
parent9290920994f7d56ea165dc935b0ca5ce4fe70569
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]