diff options
author | Mario Kleiner <mario.kleiner@tuebingen.mpg.de> | 2010-11-22 04:11:07 +0100 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2010-12-01 20:30:36 -0500 |
commit | 122536ee0aeb1eef1a9d80d5e464dcb423dc2837 (patch) | |
tree | 23da02481fa061939261b30f42a8a4f4eb35444f /src/radeon.h | |
parent | 0de680730294bd623f6b3e189faa7b88a09d3a2a (diff) |
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>
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/radeon.h b/src/radeon.h index 0f7d012e..42b74854 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -224,7 +224,8 @@ typedef enum { OPTION_FORCE_LOW_POWER, OPTION_DYNAMIC_PM, OPTION_NEW_PLL, - OPTION_ZAPHOD_HEADS + OPTION_ZAPHOD_HEADS, + OPTION_SWAPBUFFERS_WAIT } RADEONOpts; @@ -1076,6 +1077,9 @@ typedef struct { int bicubic_offset; /* kms pageflipping */ Bool allowPageFlip; + + /* Perform vsync'ed SwapBuffers? */ + Bool swapBuffersWait; } RADEONInfoRec, *RADEONInfoPtr; #define RADEONWaitForFifo(pScrn, entries) \ |