aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-09-18 00:12:45 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-19 14:39:43 -0400
commita33afea5ff6e5b87ac11c87fb60b3704b3ac0fcc (patch)
treee8c6bae280dfa96ed2b0de85196b39717b3da0ca /drivers/gpu/drm/i915/i915_drv.h
parentc3787e2eac816a597a7f92daa5d0629a85e77d56 (diff)
drm/i915: Keep a list of all contexts
I have implemented this patch before without creating a separate list (I'm having trouble finding the links, but the messages ids are: <1364942743-6041-2-git-send-email-ben@bwidawsk.net> <1365118914-15753-9-git-send-email-ben@bwidawsk.net>) However, the code is much simpler to just use a list and it makes the code from the next patch a lot more pretty. As you'll see in the next patch, the reason for this is to be able to specify when a context needs to get L3 remapping. More details there. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 0c39805b881e..179592762537 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -605,6 +605,8 @@ struct i915_hw_context {
605 struct intel_ring_buffer *ring; 605 struct intel_ring_buffer *ring;
606 struct drm_i915_gem_object *obj; 606 struct drm_i915_gem_object *obj;
607 struct i915_ctx_hang_stats hang_stats; 607 struct i915_ctx_hang_stats hang_stats;
608
609 struct list_head link;
608}; 610};
609 611
610struct i915_fbc { 612struct i915_fbc {
@@ -1343,6 +1345,7 @@ typedef struct drm_i915_private {
1343 1345
1344 bool hw_contexts_disabled; 1346 bool hw_contexts_disabled;
1345 uint32_t hw_context_size; 1347 uint32_t hw_context_size;
1348 struct list_head context_list;
1346 1349
1347 u32 fdi_rx_config; 1350 u32 fdi_rx_config;
1348 1351