summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky2013-12-06 23:11:02 +0100
committerDaniel Vetter2013-12-18 15:27:54 +0100
commit0009e46cd54324c4af20b0b52b89973b1b914167 (patch)
treef772771a86a606a310102325ecb86e41ea9f8866 /drivers/gpu/drm/i915/i915_drv.h
parentdrm/i915: Permit contexts on all rings (diff)
downloadkernel-qcow2-linux-0009e46cd54324c4af20b0b52b89973b1b914167.tar.gz
kernel-qcow2-linux-0009e46cd54324c4af20b0b52b89973b1b914167.tar.xz
kernel-qcow2-linux-0009e46cd54324c4af20b0b52b89973b1b914167.zip
drm/i915: Track which ring a context ran on
Previously we dropped the association of a context to a ring. It is however very important to know which ring a context ran on (we could have reused the other member, but I was nitpicky). This is very important when we switch address spaces, which unlike context objects, do change per ring. As an example, if we have: RCS BCS ctx A ctx A ctx B ctx B Without tracking the last ring B ran on, we wouldn't know to switch the address space on BCS in the last row. As a result, we no longer need to track which ring a context "belongs" to, as it never really made much sense anyway. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 2c0115edc69f..2b16c29ea571 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -696,7 +696,7 @@ struct i915_hw_context {
bool is_initialized;
uint8_t remap_slice;
struct drm_i915_file_private *file_priv;
- struct intel_ring_buffer *ring;
+ struct intel_ring_buffer *last_ring;
struct drm_i915_gem_object *obj;
struct i915_ctx_hang_stats hang_stats;