]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Inline engine->init_context into its caller
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Jul 2019 11:37:20 +0000 (12:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Jul 2019 10:50:42 +0000 (11:50 +0100)
commit0adb3a39847321356a31ca6a601948430b24ec4a
tree26ebf0e5843e9a298504437e0791ed923afc3c12
parentff3d948be156ac12dd47d67ac95f54bcd90bacfc
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
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_mocs.c
drivers/gpu/drm/i915/gt/intel_mocs.h
drivers/gpu/drm/i915/gt/intel_renderstate.c
drivers/gpu/drm/i915/gt/intel_ringbuffer.c
drivers/gpu/drm/i915/i915_gem.c