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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Mar 2010 22:52:49 +0000 (23:52 +0100)
commitb9c81909ae1898352c546a068c6ae91264f8272b
tree74bd8dead65163b0082a2a9f737f2148882c295b
parent24e5fd3595f04cbaf4bdd83899b9345f9cf9ecf6
drm/i915: move the wait_rendering call into flush_gpu_write_domain

One caller (for the pageflip support) want's 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>
drivers/gpu/drm/i915/i915_gem.c