From: Jesse Barnes Date: Thu, 14 Jan 2010 21:18:02 +0000 (-0800) Subject: drm/i915: handle non-flip pending case when unpinning the scanout buffer X-Git-Tag: v2.6.33-rc7~2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3f440f8c9922afe8770dd16c84f1c87d779b59;p=pandora-kernel.git drm/i915: handle non-flip pending case when unpinning the scanout buffer The first page flip queued will replace the current front buffer, which should have a 0 pending flip count. So at finish time we need to handle that case (i.e. if the flip count is 0 *or* dec_and_test is 0 we need to wake the waiters). Also fix up an error path in the queue function and add some debug output (only enabled with driver debugging). Signed-off-by: Jesse Barnes Signed-off-by: Eric Anholt --- Reading git-diff-tree failed