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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-06-06 23:15:14 +01:00
parent 7e1e18aca2
commit ab47433b20
1 changed files with 1 additions and 1 deletions

View File

@ -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);