drm/i915: Preallocate requests
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Aug 2010 11:36:12 +0000 (12:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:23:50 +0000 (10:23 +0100)
By allocating the request prior to writing to the ringbuffer, we can
abort the operation without leaving the GPU in an inconsistent state.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>

No differences found