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>
This commit is contained in:
Chris Wilson 2010-09-23 17:45:39 +01:00
parent 3eee1794ac
commit 780f0ca3e0

View File

@ -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 */