aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-23 12:45:39 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-24 09:19:55 -0400
commit780f0ca3e0cd3f0677d9149b7e14bf0878d1dbdc (patch)
tree8fcc0cdf2af2e20f4d2ef30d9523824733ba3244 /drivers/gpu/drm/i915/intel_ringbuffer.h
parent3eee1794ac14f160338622ea57dcace7382ceb8f (diff)
drm/i915/ringbuffer: Fix sign of ring space.
As we presume space is signed when computing and looking for wrap along, make it so. Reported-by: Owain G. Ainsworth <zerooa@googlemail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index bfbc4889909e..ce521010ce96 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -31,7 +31,7 @@ struct intel_ring_buffer {
31 31
32 unsigned int head; 32 unsigned int head;
33 unsigned int tail; 33 unsigned int tail;
34 unsigned int space; 34 int space;
35 struct intel_hw_status_page status_page; 35 struct intel_hw_status_page status_page;
36 36
37 u32 irq_gem_seqno; /* last seq seem at irq time */ 37 u32 irq_gem_seqno; /* last seq seem at irq time */