diff options
author | Chris Wilson | 2019-03-08 14:25:18 +0100 |
---|---|---|
committer | Chris Wilson | 2019-03-08 14:59:50 +0100 |
commit | 4dc84b77b07731b7f5de2ce14b5f0526a86f013d (patch) | |
tree | dab57196ae00549822468476afab8c77cc68e252 /drivers/gpu/drm/i915/intel_engine_types.h | |
parent | drm/i915: Split struct intel_context definition to its own header (diff) | |
download | kernel-qcow2-linux-4dc84b77b07731b7f5de2ce14b5f0526a86f013d.tar.gz kernel-qcow2-linux-4dc84b77b07731b7f5de2ce14b5f0526a86f013d.tar.xz kernel-qcow2-linux-4dc84b77b07731b7f5de2ce14b5f0526a86f013d.zip |
drm/i915: Store the intel_context_ops in the intel_engine_cs
If we place a pointer to the engine specific intel_context_ops in the
engine itself, we can assign the ops pointer on initialising the
context, and then rely on it being set. This simplifies the code in
later patches.
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/20190308132522.21573-3-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_engine_types.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_engine_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_engine_types.h b/drivers/gpu/drm/i915/intel_engine_types.h index f7ceda334169..4d2c0ba58e6e 100644 --- a/drivers/gpu/drm/i915/intel_engine_types.h +++ b/drivers/gpu/drm/i915/intel_engine_types.h @@ -351,6 +351,7 @@ struct intel_engine_cs { void (*set_default_submission)(struct intel_engine_cs *engine); + const struct intel_context_ops *cops; struct intel_context *(*context_pin)(struct intel_engine_cs *engine, struct i915_gem_context *ctx); |