summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-08-04 14:18:13 (GMT)
committerEric Anholt <eric@anholt.net>2010-08-09 18:24:31 (GMT)
commitd97ed3396399126cfca1e12e2b2e2d8bbc4924e5 (patch)
tree831529a147ec7cd85ae080e415a84b351af574fe /drivers/gpu/drm/i915/intel_ringbuffer.h
parent1741dd4aa7552055659bf74ab829a21579407f10 (diff)
downloadlinux-d97ed3396399126cfca1e12e2b2e2d8bbc4924e5.tar.xz
drm/i915: Move ringbuffer accounting to begin/advance.
As we check that the ringbuffer will not wrap upon emission, we do not need to check that incrementing the tail wrapped every time. However, we do upon advancing just in case the tail is now pointing at the very end of the ring. Likewise we can account for the space used during emission in begin() and avoid decrementing it for every emit. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
0 files changed, 0 insertions, 0 deletions