Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */