From: Chris Wilson Date: Sat, 29 Jun 2013 21:05:26 +0000 (+0100) Subject: drm/i915: Refactor the wait_rendering completion into a common routine X-Git-Tag: v3.11-rc1~65^2~16^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d26e3af842023603747f1566caff5f471508bbd4;p=pandora-kernel.git drm/i915: Refactor the wait_rendering completion into a common routine Harmonise the completion logic between the non-blocking and normal wait_rendering paths, and move that logic into a common function. In the process, we note that the last_write_seqno is by definition the earlier of the two read/write seqnos and so all successful waits will have passed the last_write_seqno. Therefore we can unconditionally clear the write seqno and its domains in the completion logic. v2: Add the missing ring parameter, because sometimes it is good to have things compile. Signed-off-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed