diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 0640071e30a97980275386d2df3cd8b3a363b69e..4fea8a07a85edb43ad95e6ef0d052fa22dfaba57 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -591,7 +591,6 @@ struct intel_context { bool is_initialized; uint8_t remap_slice; struct drm_i915_file_private *file_priv; - struct intel_engine_cs *last_ring; struct drm_i915_gem_object *obj; struct i915_ctx_hang_stats hang_stats; struct i915_address_space *vm; diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index 3ffe308d58937b767e6337ed6a9cf7aaa65d4b5b..21eda88ff5419effc9333f666d490823ef8e2331 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.c +++ b/drivers/gpu/drm/i915/i915_gem_context.c @@ -605,7 +605,7 @@ static int do_switch(struct intel_engine_cs *ring, BUG_ON(!i915_gem_obj_is_pinned(from->obj)); } - if (from == to && from->last_ring == ring && !to->remap_slice) + if (from == to && !to->remap_slice) return 0; /* Trying to pin first makes error handling easier. */ @@ -699,7 +699,6 @@ static int do_switch(struct intel_engine_cs *ring, done: i915_gem_context_reference(to); ring->last_context = to; - to->last_ring = ring; if (ring->id == RCS && !to->is_initialized && from == NULL) { ret = i915_gem_render_state_init(ring);