drm/i915/gt: Split low level gen2-7 CS emitters
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Jun 2020 07:24:12 +0000 (08:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Jun 2020 09:42:00 +0000 (10:42 +0100)
commitc1f8587870602274e1de97aca89361cf91bc12d2
tree7948251354b5ace32e5296e3ad4a1078fe3554f5
parentf9496520df11de00fbafc3cbd693b9570d600ab3
drm/i915/gt: Split low level gen2-7 CS emitters

Pull the routines for writing CS packets out of intel_ring_submission
into their own files. These are low level operations for building CS
instructions, rather than the logic for filling the global ring buffer
with requests, and we will want to reuse them outside of this context.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200601072446.19548-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gt/gen2_engine_cs.c [new file with mode: 0644]
drivers/gpu/drm/i915/gt/gen2_engine_cs.h [new file with mode: 0644]
drivers/gpu/drm/i915/gt/gen6_engine_cs.c [new file with mode: 0644]
drivers/gpu/drm/i915/gt/gen6_engine_cs.h [new file with mode: 0644]
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_ring_submission.c