]> 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)
commit5cea3d4554e0b6868cdaecc2c0d78118291935a6
tree26ebf0e5843e9a298504437e0791ed923afc3c12
parente04cbf5351e706b12994b5a4af46d1d439d52efe
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