From: Mario Kleiner Date: Fri, 10 Dec 2010 15:00:19 +0000 (+0100) Subject: drm-vblank: Always return true vblank count of scheduled vblank event. X-Git-Tag: v2.6.38-rc1~419^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000fa7cf46479238f7b9f2d7763e41af5268b16a;p=pandora-kernel.git drm-vblank: Always return true vblank count of scheduled vblank event. This patch tries to make sure that the vbl.reply.sequence vblank count for a queued or emitted vblank event always corresponds to the true vblank count of queueing/emission, so the ddx can rely on the returned target_msc for consistency checks and implementation of swap_intervals in glXSwapBuffers(). Without this there is a small race-condition between the userspace ddx queueing a vblank event and the vblank counter incrementing before the event gets queued in the kernel. Signed-off-by: Mario Kleiner Acked-by: Jesse Barnes Signed-off-by: Dave Airlie --- Reading git-diff-tree failed