diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2008-12-05 08:15:59 +0100 |
---|---|---|
committer | Pierre Ossman <pierre@ossman.eu> | 2008-12-05 08:15:59 +0100 |
commit | bae30856f2cb3884387ef347327af6ff00b75854 (patch) | |
tree | 2dc9e10ddc41193837b43dbdbdf3e985eccde657 /src/radeon_commonfuncs.c | |
parent | 33638d9e388b330e2f4eb4debd05ba09924cf176 (diff) |
Make VSync for EXA and Xv configurable
Diffstat (limited to 'src/radeon_commonfuncs.c')
-rw-r--r-- | src/radeon_commonfuncs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/radeon_commonfuncs.c b/src/radeon_commonfuncs.c index c2f34511..92e10d29 100644 --- a/src/radeon_commonfuncs.c +++ b/src/radeon_commonfuncs.c @@ -637,13 +637,16 @@ static void FUNC_NAME(RADEONInit3DEngine)(ScrnInfoPtr pScrn) /* inserts a wait for vline in the command stream */ void FUNC_NAME(RADEONWaitForVLine)(ScrnInfoPtr pScrn, PixmapPtr pPix, - int crtc, int start, int stop) + int crtc, int start, int stop, Bool enable) { RADEONInfoPtr info = RADEONPTR(pScrn); xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); uint32_t offset; ACCEL_PREAMBLE(); + if (!enable) + return; + if ((crtc < 0) || (crtc > 1)) return; |