diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-08-08 12:56:40 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-08-08 13:44:31 +0100 |
commit | ca883c304f54a5b2fc83c2729691e9eae3a1226e (patch) | |
tree | 6124f2595cd8e2506af99a2fc668e7bba6c045ae /drivers/gpu/drm/i915/selftests/mock_request.h | |
parent | 32d38e6cf007dcb298f4d66c9fd51fab0fd26c5e (diff) | |
download | linux-ca883c304f54a5b2fc83c2729691e9eae3a1226e.tar.gz linux-ca883c304f54a5b2fc83c2729691e9eae3a1226e.tar.bz2 linux-ca883c304f54a5b2fc83c2729691e9eae3a1226e.zip |
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
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/mock_request.h')
-rw-r--r-- | drivers/gpu/drm/i915/selftests/mock_request.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/selftests/mock_request.h b/drivers/gpu/drm/i915/selftests/mock_request.h index 4acf0211df20..8907b60c290d 100644 --- a/drivers/gpu/drm/i915/selftests/mock_request.h +++ b/drivers/gpu/drm/i915/selftests/mock_request.h @@ -30,9 +30,7 @@ #include "../i915_request.h" struct i915_request * -mock_request(struct intel_engine_cs *engine, - struct i915_gem_context *context, - unsigned long delay); +mock_request(struct intel_context *ce, unsigned long delay); bool mock_cancel_request(struct i915_request *request); |