drm/i915/ringbuffer: Fix sign of ring space.
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Sep 2010 16:45:39 +0000 (17:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Sep 2010 13:19:55 +0000 (14:19 +0100)
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>
drivers/gpu/drm/i915/intel_ringbuffer.h

index bfbc4889909efaaeb2811b43d035f9577af6fd97..ce521010ce9627c09000ea1620e73f06ea9963e1 100644 (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 */