From ab47433b20a623bf790acfbf2005a8782d177f64 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 6 Jun 2013 23:15:14 +0100 Subject: [PATCH] sna/video: Select vsync by default based on "SwapbuffersWait" To be strictly identical to the DRI code, we should override the user when the option is set. However, this a baby step for simple bug testing. References: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1176647 Signed-off-by: Chris Wilson --- src/sna/sna_video_textured.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_video_textured.c b/src/sna/sna_video_textured.c index 96f4f55a..b9ccec0d 100644 --- a/src/sna/sna_video_textured.c +++ b/src/sna/sna_video_textured.c @@ -397,7 +397,7 @@ void sna_video_textured_setup(struct sna *sna, ScreenPtr screen) v->textured = true; v->alignment = 4; v->rotation = RR_Rotate_0; - v->SyncToVblank = 1; + v->SyncToVblank = (sna->flags & SNA_NO_WAIT) == 0; RegionNull(&v->clip);