Skip to content

Commit

Permalink
drm/i915/ringbuffer: Fix sign of ring space.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Wilson committed Sep 24, 2010
1 parent 3eee179 commit 780f0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_ringbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 780f0ca

Please sign in to comment.