drm/i915: Add selftests for i915_gem_request
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:21 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:35 +0000 (20:45 +0000)
commitc835c5508358311d7922ea7b18bcaf611d1f8bb9
treefd78a9ae7c59231c910af8eca2688f35c363ab68
parent44653988ef7c70bf7c55a5e642e22ce5446fb6b1
drm/i915: Add selftests for i915_gem_request

Simple starting point for adding seltests for i915_gem_request, first
mock a device (with engines and contexts) that allows us to construct
and execute a request, along with waiting for the request to complete.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-10-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c
drivers/gpu/drm/i915/selftests/i915_gem_request.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_mock_selftests.h