diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-07-29 12:37:20 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-07-30 11:50:42 +0100 |
commit | a56277216637c359e9125b9c16be09f21ed2a395 (patch) | |
tree | 26ebf0e5843e9a298504437e0791ed923afc3c12 /drivers/gpu/drm/i915/gt/intel_mocs.h | |
parent | 1032a2af93f58ff12996f6122a8a488979ea22a8 (diff) |
drm/i915: Inline engine->init_context into its caller
We only use the init_context vfunc once while recording the default
context state, and we use the same sequence in each backend (eliding
steps that do not apply). Remove the vfunc for simplicity and
de-duplication.
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/20190729113720.24830-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_mocs.h')
-rw-r--r-- | drivers/gpu/drm/i915/gt/intel_mocs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_mocs.h b/drivers/gpu/drm/i915/gt/intel_mocs.h index 8b9813e6f9ac..a334db2d6d6b 100644 --- a/drivers/gpu/drm/i915/gt/intel_mocs.h +++ b/drivers/gpu/drm/i915/gt/intel_mocs.h @@ -54,8 +54,9 @@ struct i915_request; struct intel_engine_cs; struct intel_gt; -int intel_rcs_context_init_mocs(struct i915_request *rq); void intel_mocs_init_l3cc_table(struct intel_gt *gt); void intel_mocs_init_engine(struct intel_engine_cs *engine); +int intel_mocs_emit(struct i915_request *rq); + #endif |