diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-04 07:52:36 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-04 08:09:26 +0100 |
commit | 675d9ad71b0b7a6101500fea3e7b2b0c5bb6a8fd (patch) | |
tree | 2c21843641c33b1a943a7c428a8c8babd7150a44 /drivers/gpu/drm/i915/intel_ringbuffer.h | |
parent | fa545cbf9765914da302beb74d68cfd8f21b3843 (diff) | |
download | talos-obmc-linux-675d9ad71b0b7a6101500fea3e7b2b0c5bb6a8fd.tar.gz talos-obmc-linux-675d9ad71b0b7a6101500fea3e7b2b0c5bb6a8fd.zip |
drm/i915: Track requests inside each intel_ring
By tracking each request occupying space inside an individual
intel_ring, we can greatly simplify the logic of tracking available
space and not worry about other timelines. (Each ring is an ordered
timeline of committed requests.)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470293567-10811-17-git-send-email-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 236e7a2f5689..88952bf10b9d 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h @@ -90,6 +90,8 @@ struct intel_ring { struct intel_engine_cs *engine; struct list_head link; + struct list_head request_list; + u32 head; u32 tail; int space; |