diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-03-05 09:49:03 -0800 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-03-29 10:02:30 -0700 |
commit | 87ca6320f26eb3129e3c19056e1d8fa5c1784723 (patch) | |
tree | 599069656e7a9f1944f4b233c96dc6519f0f60fe | |
parent | 8476d99231cb725c090305d60f1c1c889d25c8dc (diff) |
DRI2: handle swap_interval of 0 correctly
A 0 swap interval means that swaps shouldn't be sync'd to vblank, so
just complete the swap immediately in that case.
Reviewed-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r-- | hw/xfree86/dri2/dri2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c index 58f478f49..9825a55ce 100644 --- a/hw/xfree86/dri2/dri2.c +++ b/hw/xfree86/dri2/dri2.c @@ -616,8 +616,8 @@ DRI2SwapBuffers(ClientPtr client, DrawablePtr pDraw, CARD64 target_msc, return BadDrawable; } - /* Old DDX, just blit */ - if (!ds->ScheduleSwap) { + /* Old DDX or no swap interval, just blit */ + if (!ds->ScheduleSwap || !pPriv->swap_interval) { BoxRec box; RegionRec region; |