drm/i915: Move mi_set_context() into the legacy ringbuffer submission
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Nov 2017 15:26:31 +0000 (15:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Nov 2017 16:12:06 +0000 (16:12 +0000)
commit8911a31c813275882fdc15554235a914e678759e
treedd394daf60fa8460f5dac52f8d5a6fd25ab0bff7
parentb1c24a6137af11fca49192a42face03cacbd7fc5
drm/i915: Move mi_set_context() into the legacy ringbuffer submission

The legacy i915_switch_context() is only applicable to the legacy
ringbuffer submission method, so move it from the general
i915_gem_context.c to intel_ringbuffer.c (rename pending!).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171123152631.31385-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/intel_ringbuffer.c