Skip to content

Commit

Permalink
drm/i915/execlists: Assign virtual_engine->uncore from first sibling
Browse files Browse the repository at this point in the history
Copy across the engine->uncore shortcut to the virtual_engine from its
first physical engine, similar to the handling of the engine->gt
backpointer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191008070342.4045-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Oct 8, 2019
1 parent 4128686 commit 20af04f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/gt/intel_lrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4170,6 +4170,7 @@ intel_execlists_create_virtual(struct i915_gem_context *ctx,

ve->base.i915 = ctx->i915;
ve->base.gt = siblings[0]->gt;
ve->base.uncore = siblings[0]->uncore;
ve->base.id = -1;
ve->base.class = OTHER_CLASS;
ve->base.uabi_class = I915_ENGINE_CLASS_INVALID;
Expand Down

0 comments on commit 20af04f

Please sign in to comment.