drm/i915: Allocate kernel_contexts directly
Ignore the central i915->kernel_context for allocating an engine, as that GEM context is being phased out. For internal clients, we just need the per-engine logical state, so allocate it at the point of use. Signed-off-by:Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by:
Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190808110612.23539-1-chris@chris-wilson.co.uk
Showing
- drivers/gpu/drm/i915/Makefile 0 additions, 2 deletionsdrivers/gpu/drm/i915/Makefile
- drivers/gpu/drm/i915/gt/intel_engine_cs.c 31 additions, 27 deletionsdrivers/gpu/drm/i915/gt/intel_engine_cs.c
- drivers/gpu/drm/i915/gt/mock_engine.c 5 additions, 10 deletionsdrivers/gpu/drm/i915/gt/mock_engine.c
- drivers/gpu/drm/i915/gvt/scheduler.c 2 additions, 1 deletiondrivers/gpu/drm/i915/gvt/scheduler.c
- drivers/gpu/drm/i915/i915_gem.c 52 additions, 35 deletionsdrivers/gpu/drm/i915/i915_gem.c
Loading
Please register or sign in to comment