summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_request.h
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2021-03-24 13:13:29 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2021-03-26 00:48:08 +0100
commit7dbc19da5daf45cb16f3bff900b69d44c512c333 (patch)
tree1feb297a3e6c0c3192c83ec7b096e2e2ffe039a0 /drivers/gpu/drm/i915/i915_request.h
parentdrm/i915: Move gt_revoke() slightly (diff)
downloadlinux-7dbc19da5daf45cb16f3bff900b69d44c512c333.tar.xz
linux-7dbc19da5daf45cb16f3bff900b69d44c512c333.zip
drm/i915: Extract active lookup engine to a helper
Move active engine lookup to exported i915_request_active_engine. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> [danvet: Slight rebase, engine->sched.lock is still called engine->active.lock.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210324121335.2307063-2-tvrtko.ursulin@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.h')
-rw-r--r--drivers/gpu/drm/i915/i915_request.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.h b/drivers/gpu/drm/i915/i915_request.h
index ce773c033642..cf4bd07f749e 100644
--- a/drivers/gpu/drm/i915/i915_request.h
+++ b/drivers/gpu/drm/i915/i915_request.h
@@ -627,4 +627,8 @@ i915_request_active_seqno(const struct i915_request *rq)
return hwsp_phys_base + hwsp_relative_offset;
}
+bool
+i915_request_active_engine(struct i915_request *rq,
+ struct intel_engine_cs **active);
+
#endif /* I915_REQUEST_H */