forked from Minki/linux
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:
parent
3eee1794ac
commit
780f0ca3e0
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user