]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/i915_gem_gtt.c
drm/i915: Mock a GGTT for self-testing
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:18 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:30 +0000 (20:45 +0000)
commit3b5bb0a37665ce1efaf3b9a551c945c09a726504
tree4671d4ded902f6f4a30330b370f5ade95ea2fe14
parent66d9cb5d805af70229ffe6f961bf06adc511f469
drm/i915: Mock a GGTT for self-testing

A very simple mockery, just a random manager and timeline. Useful for
inserting objects and ordering retirement; and not much else.

v2: mock_fini_ggtt() to complement mock_init_ggtt().

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