drm/i915: De-inline intel_context_init()
Nip some inline spaghetti in the bud before the problem gets too bad. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190124083710.7033-1-chris@chris-wilson.co.uk
This commit is contained in:
parent
74d021eaa7
commit
f6626e1d96
|
@ -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)
|
||||||
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__ */
|
||||||
|
|
Loading…
Reference in a new issue