summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gt/mock_engine.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-04-26 17:33:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-04-26 18:32:07 +0100
commit11334c6aad9500a9d3b9b48dd0a4bb6406eb88fb (patch)
tree68b72ab6692e03a3f3b026386e67843677793bdc /drivers/gpu/drm/i915/gt/mock_engine.h
parent6b736de5746a304692fc5f7f5fc46cd9c2e8bd29 (diff)
downloadlinux-11334c6aad9500a9d3b9b48dd0a4bb6406eb88fb.tar.gz
linux-11334c6aad9500a9d3b9b48dd0a4bb6406eb88fb.tar.bz2
linux-11334c6aad9500a9d3b9b48dd0a4bb6406eb88fb.zip
drm/i915: Split engine setup/init into two phases
In the next patch, we require the engine vfuncs setup prior to initialising the pinned kernel contexts, so split the vfunc setup from the engine initialisation and call it earlier. v2: s/setup_xcs/setup_common/ for intel_ring_submission_setup() Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190426163336.15906-6-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/gt/mock_engine.h')
-rw-r--r--drivers/gpu/drm/i915/gt/mock_engine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/mock_engine.h b/drivers/gpu/drm/i915/gt/mock_engine.h
index 44b35a85e9d1..3f9b698c49d2 100644
--- a/drivers/gpu/drm/i915/gt/mock_engine.h
+++ b/drivers/gpu/drm/i915/gt/mock_engine.h
@@ -42,6 +42,8 @@ struct mock_engine {
struct intel_engine_cs *mock_engine(struct drm_i915_private *i915,
const char *name,
int id);
+int mock_engine_init(struct intel_engine_cs *engine);
+
void mock_engine_flush(struct intel_engine_cs *engine);
void mock_engine_reset(struct intel_engine_cs *engine);
void mock_engine_free(struct intel_engine_cs *engine);