]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Refactor out intel_context_init()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Jan 2019 22:20:50 +0000 (22:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Jan 2019 13:13:53 +0000 (13:13 +0000)
commitfa9d0d303f870e060b96ee4912803e7346beed60
tree7beebd52f4149d43ea2ccd6aff9514411b6b3b1b
parent12d5bd365dae75e3cb14585a0913632c3e798249
drm/i915: Refactor out intel_context_init()

Prior to adding a third instance of intel_context_init() and extending
the information stored therewithin, refactor out the common assignments.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190121222117.23305-8-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gem_context.h
drivers/gpu/drm/i915/selftests/mock_context.c