Commit 780f0ca3 authored by Chris Wilson's avatar Chris Wilson

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: default avatarOwain G. Ainsworth <zerooa@googlemail.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 3eee1794
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment