summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_crt.c
diff options
context:
space:
mode:
authorDave Gordon <david.s.gordon@intel.com>2016-07-13 16:03:35 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2016-07-14 11:16:18 +0100
commitc2c7f240081da626ed9da6dc536306d2ad393c9a (patch)
treef7b19ed9893ade3fa06cddd36205c254f8a51134 /drivers/gpu/drm/i915/intel_crt.c
parent035ea405c91e2dc89325a79129cf9af2b9c2ae8e (diff)
drm/i915: unify first-stage engine struct setup
intel_lrc.c has a table of "logical rings" (meaning engines), while intel_ringbuffer.c has separately open-coded initialisation for each engine. We can deduplicate this somewhat by using the same first-stage engine-setup function for both modes. So here we expose the function that transfers information from the static table of (all) known engines to the dev_priv->engine array of engines available on this device (adjusting the names along the way) and then embed calls to it in both the LRC and the legacy-mode setup. Signed-off-by: Dave Gordon <david.s.gordon@intel.com> Reviewed-by: Chris Wilson <chris-wilson.co.uk> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_crt.c')
0 files changed, 0 insertions, 0 deletions