OSDN Git Service

drm/i915/selftests: Pass intel_context to mock_request
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2019 11:56:40 +0000 (12:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2019 12:44:31 +0000 (13:44 +0100)
commitca883c304f54a5b2fc83c2729691e9eae3a1226e
tree6124f2595cd8e2506af99a2fc668e7bba6c045ae
parent32d38e6cf007dcb298f4d66c9fd51fab0fd26c5e
drm/i915/selftests: Pass intel_context to mock_request

Modernise the mock_request factory to take intel_context not a (GEM
context, intel_engine_cs) tuple.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190808115640.20552-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_request.c
drivers/gpu/drm/i915/selftests/mock_request.c
drivers/gpu/drm/i915/selftests/mock_request.h