diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-06 23:15:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-06 23:19:18 +0100 |
commit | ab47433b20a623bf790acfbf2005a8782d177f64 (patch) | |
tree | 2625731af8524c5b26ad8046b5c107bc6110020a /src | |
parent | 7e1e18aca214a8705270972131a1800c81bc3b4d (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_video_textured.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |