drm/i915: split gen8+ flush and bb_start emission functions
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 9 Dec 2020 23:36:18 +0000 (23:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Dec 2020 23:45:20 +0000 (23:45 +0000)
commitd0d829e56674cecaedcbcce3b8b59b966a50efbe
treef2215fbbbb74ba3cf7399dfe043104dba6f2f97d
parent70a2b431c36483c0c06e589e11c59e438cd0ac06
drm/i915: split gen8+ flush and bb_start emission functions

These functions are independent from the backend used and can therefore
be split out of the exelists submission file, so they can be re-used by
the upcoming GuC submission backend.

Based on a patch by Chris Wilson.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201209233618.4287-3-chris@chris-wilson.co.uk
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gt/gen8_engine_cs.c [new file with mode: 0644]
drivers/gpu/drm/i915/gt/gen8_engine_cs.h [new file with mode: 0644]
drivers/gpu/drm/i915/gt/intel_execlists_submission.c