summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests/mock_request.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-08-08 12:56:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-08-08 13:44:31 +0100
commitca883c304f54a5b2fc83c2729691e9eae3a1226e (patch)
tree6124f2595cd8e2506af99a2fc668e7bba6c045ae /drivers/gpu/drm/i915/selftests/mock_request.h
parent32d38e6cf007dcb298f4d66c9fd51fab0fd26c5e (diff)
downloadlinux-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.h4
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);