drm/i915: Refactor i915_gem_retire_requests()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Jul 2010 22:18:49 +0000 (23:18 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:52:57 +0000 (19:52 -0700)
commitb09a1feca65764311f8a3e14befb52b98d705f0a
tree304b9bcb257b21bec30244e207e47d95035148bd
parentb9421ae8f30958deea98d71477b4a77a066856b4
drm/i915: Refactor i915_gem_retire_requests()

Combine the iteration over active render rings into a common function.
This is in preparation for reusing the idle function to also retire
deferred free requests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c