Commit f6626e1d authored by Chris Wilson's avatar Chris Wilson

drm/i915: De-inline intel_context_init()

Nip some inline spaghetti in the bud before the problem gets too bad.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190124083710.7033-1-chris@chris-wilson.co.uk
parent 74d021ea
...@@ -321,6 +321,14 @@ static u32 default_desc_template(const struct drm_i915_private *i915, ...@@ -321,6 +321,14 @@ static u32 default_desc_template(const struct drm_i915_private *i915,
return desc; return desc;
} }
void
intel_context_init(struct intel_context *ce,
struct i915_gem_context *ctx,
struct intel_engine_cs *engine)
{
ce->gem_context = ctx;
}
static struct i915_gem_context * static struct i915_gem_context *
__create_hw_context(struct drm_i915_private *dev_priv, __create_hw_context(struct drm_i915_private *dev_priv,
struct drm_i915_file_private *file_priv) struct drm_i915_file_private *file_priv)
......
...@@ -364,12 +364,8 @@ static inline void i915_gem_context_put(struct i915_gem_context *ctx) ...@@ -364,12 +364,8 @@ static inline void i915_gem_context_put(struct i915_gem_context *ctx)
kref_put(&ctx->ref, i915_gem_context_release); kref_put(&ctx->ref, i915_gem_context_release);
} }
static inline void void intel_context_init(struct intel_context *ce,
intel_context_init(struct intel_context *ce, struct i915_gem_context *ctx,
struct i915_gem_context *ctx, struct intel_engine_cs *engine);
struct intel_engine_cs *engine)
{
ce->gem_context = ctx;
}
#endif /* !__I915_GEM_CONTEXT_H__ */ #endif /* !__I915_GEM_CONTEXT_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment