aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/selftests/mock_request.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2019-04-26 17:33:36 +0100
committerChris Wilson <[email protected]>2019-04-26 18:32:20 +0100
commit46472b3efb61b033f9b4807a178434c50f31d5c5 (patch)
tree501cef9d813cc35f8c346ce96710609981d9c34d /drivers/gpu/drm/i915/selftests/mock_request.c
parent026844460743caa4ade58101bf5daef5936dff86 (diff)
drm/i915: Move i915_request_alloc into selftests/
Having transitioned GEM over to using intel_context as its primary means of tracking the GEM context and engine combined and using i915_request_create(), we can move the older i915_request_alloc() helper function into selftests/ where the remaining users are confined. Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/mock_request.c')
-rw-r--r--drivers/gpu/drm/i915/selftests/mock_request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/selftests/mock_request.c b/drivers/gpu/drm/i915/selftests/mock_request.c
index f739ba63057f..b99f7576153c 100644
--- a/drivers/gpu/drm/i915/selftests/mock_request.c
+++ b/drivers/gpu/drm/i915/selftests/mock_request.c
@@ -24,6 +24,7 @@
#include "gt/mock_engine.h"
+#include "igt_gem_utils.h"
#include "mock_request.h"
struct i915_request *
@@ -34,7 +35,7 @@ mock_request(struct intel_engine_cs *engine,
struct i915_request *request;
/* NB the i915->requests slab cache is enlarged to fit mock_request */
- request = i915_request_alloc(engine, context);
+ request = igt_request_alloc(context, engine);
if (IS_ERR(request))
return NULL;