summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner.de@gmail.com>2014-06-19 17:11:34 +0200
committerBen Skeggs <bskeggs@redhat.com>2014-06-21 17:24:12 +1000
commitf0fa8313714c2a5b16e784b257b5ff79da3a443b (patch)
treeb4a2679ea2ff6a06bebe87a2840c126663d9da18
parent02d7e647ce3a4a5d48c4ee94c94bebcac2d4827d (diff)
dri2: Enable sync of bufferswaps to Vblank by default.
Make this consistent with other drivers default behaviour. Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--man/nouveau.man2
-rw-r--r--src/nv_driver.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/man/nouveau.man b/man/nouveau.man
index a8dfacd..0bf6e1e 100644
--- a/man/nouveau.man
+++ b/man/nouveau.man
@@ -96,7 +96,7 @@ Enable or disable wfb, only affects nv50+. Useful for some legacy configurations
.BI "Option \*qGLXVBlank\*q \*q" boolean \*q
Synchronize GLX clients to VBlank. Useful where tearing is a problem,
harmful if the GPU isn't fast enough to keep up with the monitor
-refresh rate. Default: off.
+refresh rate. Default: on.
.TP
.BI "Option \*qZaphodHeads\*q \*q" string \*q
Specify the randr output(s) to use with zaphod mode for a particular driver
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 3ca65c5..44a0963 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1067,6 +1067,7 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
if (pNv->AccelMethod > NONE && pNv->dev->chipset >= 0x11) {
from = X_DEFAULT;
+ pNv->glx_vblank = TRUE;
if (xf86GetOptValBool(pNv->Options, OPTION_GLX_VBLANK,
&pNv->glx_vblank))
from = X_CONFIG;