OSDN Git Service

drm/i915: Add some mock tests for dmabuf interop
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:36 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:50 +0000 (20:45 +0000)
commit6cca22ede8a448d341b3e4565943f54bd8b8dcd0
treeef93c1f8c869118b2a3fe9c89b053b6ce270becf
parenta8fb2bad82b64047d9c6090b859467cacc69e9d2
drm/i915: Add some mock tests for dmabuf interop

Check that we can create both dmabuf and objects from dmabuf.

v2: Cleanups, correct include, fix unpin on dead path and prevent
explosion on dmabuf init failure

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