drm/i915: Report the ring->space from intel_ring_update_space()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 May 2017 13:08:45 +0000 (14:08 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 May 2017 14:40:38 +0000 (15:40 +0100)
commit95aebcb2da73079f9ecb7f4e353af71ff1f04c05
treef30a90272fa56d732bec4b3091c26539b619fc87
parent605d5b3297687cce9d3c4298c699188e61486a4c
drm/i915: Report the ring->space from intel_ring_update_space()

Some callers immediately want to know the current ring->space after
calling intel_ring_update_space(), which we can freely provide via the
return parameter.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170504130846.4807-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h