drm/i915: move the wait_rendering call into flush_gpu_write_domain
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Feb 2010 21:37:04 +0000 (22:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:23:38 +0000 (10:23 +0100)
commitba3d8d749b01548b918519a49024341d8dc9e71c
treeb937406ef24ecc5fc1fdf9e479b3e915c7e60909
parent617dbe2787568316eed976f533f93c31fdbc75b9
drm/i915: move the wait_rendering call into flush_gpu_write_domain

One caller (for the pageflip support) wants a purely pipelined flush.
Distinguish this case by a new parameter. This will also be useful
later on for pipelined fencing.

v2: Simplify the code by depending upon the implicit request emitting
of i915_wait_request.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[ickle: And drop the non-interruptible support in the process.]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c