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)
commit8dc5d14741dc1ee0074a14b360993a10c2c02d24
tree9b4885aa1e74161138caf5f611e5f99d379a817e
parent5cd68c9864d65e49c910c701716e4e94e09f7ce0
drm/i915: Preallocate requests

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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_overlay.c