Commit f54ffa12 authored by Andi Shyti's avatar Andi Shyti Committed by Matt Roper

drm/i915: Rename i915->gt to i915->gt0

In preparation of the multitile support, highlight the root GT by
calling it gt0 inside the drm i915 private data.
Signed-off-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211214193346.21231-11-andi.shyti@linux.intel.com
parent 2cbc876d
...@@ -1189,7 +1189,7 @@ struct drm_i915_private { ...@@ -1189,7 +1189,7 @@ struct drm_i915_private {
struct i915_perf perf; struct i915_perf perf;
/* Abstract the submission mechanism (legacy ringbuffer or execlists) away */ /* Abstract the submission mechanism (legacy ringbuffer or execlists) away */
struct intel_gt gt; struct intel_gt gt0;
struct { struct {
struct i915_gem_contexts { struct i915_gem_contexts {
...@@ -1270,7 +1270,7 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) ...@@ -1270,7 +1270,7 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)
static inline struct intel_gt *to_gt(struct drm_i915_private *i915) static inline struct intel_gt *to_gt(struct drm_i915_private *i915)
{ {
return &i915->gt; return &i915->gt0;
} }
/* Simple iterator over all initialised engines */ /* Simple iterator over all initialised engines */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment