diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 6f200a747176..53703012ec75 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -571,8 +571,8 @@ static void reset_ring(struct intel_engine_cs *engine, | |||
571 | */ | 571 | */ |
572 | if (request) { | 572 | if (request) { |
573 | struct drm_i915_private *dev_priv = request->i915; | 573 | struct drm_i915_private *dev_priv = request->i915; |
574 | struct intel_context *ce = to_intel_context(request->ctx, | 574 | struct intel_context *ce = |
575 | engine); | 575 | to_intel_context(request->gem_context, engine); |
576 | struct i915_hw_ppgtt *ppgtt; | 576 | struct i915_hw_ppgtt *ppgtt; |
577 | 577 | ||
578 | if (ce->state) { | 578 | if (ce->state) { |
@@ -584,7 +584,7 @@ static void reset_ring(struct intel_engine_cs *engine, | |||
584 | CCID_EN); | 584 | CCID_EN); |
585 | } | 585 | } |
586 | 586 | ||
587 | ppgtt = request->ctx->ppgtt ?: engine->i915->mm.aliasing_ppgtt; | 587 | ppgtt = request->gem_context->ppgtt ?: engine->i915->mm.aliasing_ppgtt; |
588 | if (ppgtt) { | 588 | if (ppgtt) { |
589 | u32 pd_offset = ppgtt->pd.base.ggtt_offset << 10; | 589 | u32 pd_offset = ppgtt->pd.base.ggtt_offset << 10; |
590 | 590 | ||
@@ -1458,7 +1458,7 @@ static inline int mi_set_context(struct i915_request *rq, u32 flags) | |||
1458 | 1458 | ||
1459 | *cs++ = MI_NOOP; | 1459 | *cs++ = MI_NOOP; |
1460 | *cs++ = MI_SET_CONTEXT; | 1460 | *cs++ = MI_SET_CONTEXT; |
1461 | *cs++ = i915_ggtt_offset(to_intel_context(rq->ctx, engine)->state) | flags; | 1461 | *cs++ = i915_ggtt_offset(to_intel_context(rq->gem_context, engine)->state) | flags; |
1462 | /* | 1462 | /* |
1463 | * w/a: MI_SET_CONTEXT must always be followed by MI_NOOP | 1463 | * w/a: MI_SET_CONTEXT must always be followed by MI_NOOP |
1464 | * WaMiSetContext_Hang:snb,ivb,vlv | 1464 | * WaMiSetContext_Hang:snb,ivb,vlv |
@@ -1526,7 +1526,7 @@ static int remap_l3(struct i915_request *rq, int slice) | |||
1526 | static int switch_context(struct i915_request *rq) | 1526 | static int switch_context(struct i915_request *rq) |
1527 | { | 1527 | { |
1528 | struct intel_engine_cs *engine = rq->engine; | 1528 | struct intel_engine_cs *engine = rq->engine; |
1529 | struct i915_gem_context *to_ctx = rq->ctx; | 1529 | struct i915_gem_context *to_ctx = rq->gem_context; |
1530 | struct i915_hw_ppgtt *to_mm = | 1530 | struct i915_hw_ppgtt *to_mm = |
1531 | to_ctx->ppgtt ?: rq->i915->mm.aliasing_ppgtt; | 1531 | to_ctx->ppgtt ?: rq->i915->mm.aliasing_ppgtt; |
1532 | struct i915_gem_context *from_ctx = engine->legacy_active_context; | 1532 | struct i915_gem_context *from_ctx = engine->legacy_active_context; |
@@ -1597,7 +1597,7 @@ static int ring_request_alloc(struct i915_request *request) | |||
1597 | { | 1597 | { |
1598 | int ret; | 1598 | int ret; |
1599 | 1599 | ||
1600 | GEM_BUG_ON(!to_intel_context(request->ctx, request->engine)->pin_count); | 1600 | GEM_BUG_ON(!to_intel_context(request->gem_context, request->engine)->pin_count); |
1601 | 1601 | ||
1602 | /* Flush enough space to reduce the likelihood of waiting after | 1602 | /* Flush enough space to reduce the likelihood of waiting after |
1603 | * we start building the request - in which case we will just | 1603 | * we start building the request - in which case we will just |