diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-23 17:45:39 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-09-24 14:19:55 +0100 |
commit | 780f0ca3e0cd3f0677d9149b7e14bf0878d1dbdc (patch) | |
tree | 8fcc0cdf2af2e20f4d2ef30d9523824733ba3244 /drivers/gpu | |
parent | 3eee1794ac14f160338622ea57dcace7382ceb8f (diff) | |
download | lwn-780f0ca3e0cd3f0677d9149b7e14bf0878d1dbdc.tar.gz lwn-780f0ca3e0cd3f0677d9149b7e14bf0878d1dbdc.zip |
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')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 2 |
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 { unsigned int head; unsigned int tail; - unsigned int space; + int space; struct intel_hw_status_page status_page; u32 irq_gem_seqno; /* last seq seem at irq time */ |