ddx/ati: Add option "SwapbuffersWait" to control vsync of DRI2 swaps.

A new optional kms driver option "SwapbuffersWait" is defined
for xorg.conf, which defaults to "on". If "on", DRI2 bufferswaps
will be synchronized to vsync, otherwise not.

This currently only affects copy-swaps, not pageflipped swaps.
It also requires a swap_interval setting of zero by the OpenGL
client.

Ideally, we'd provide a way for dri2 to pass the current swap
interval to the ddx so we could change this dynamically.

Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
This commit is contained in:
Mario Kleiner
2010-11-22 04:11:07 +01:00
committed by Alex Deucher
parent 0de6807302
commit 122536ee0a
4 changed files with 25 additions and 2 deletions

View File

@@ -364,6 +364,17 @@ Color tiling will be automatically disabled in interlaced or doublescan screen m
.br
The default value is
.B on.
.TP
.BI "Option \*qSwapbuffersWait\*q \*q" boolean \*q
This option controls the behavior of glXSwapBuffers and glXCopySubBufferMESA
calls by GL applications. If enabled, the calls will avoid tearing by making
sure the display scanline is outside of the area to be copied before the copy
occurs. If disabled, no scanline synchronization is performed, meaning tearing
will likely occur. Note that when enabled, this option can adversely affect
the framerate of applications that render frames at less than refresh rate.
.IP
The default value is
.B on.
.TP
.BI "Option \*qIgnoreEDID\*q \*q" boolean \*q
Do not use EDID data for mode validation. DDC is still used