drm/i915: Propagate errors from writing to ringbuffer
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 Oct 2010 11:45:26 +0000 (12:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 Oct 2010 22:26:34 +0000 (23:26 +0100)
Preparing the ringbuffer for adding new commands can fail (a timeout
whilst waiting for the GPU to catch up and free some space). So check
for any potential error before overwriting HEAD with new commands, and
propagate that error back to the user where possible.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

No differences found