diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-03-05 09:49:03 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-05-21 13:55:22 +1000 |
commit | 20708781d43501f116b4161c1cc96b0eb39e96b1 (patch) | |
tree | b91320313140455551a72cb7f829c4eb2e873cf5 | |
parent | 73fe4a0952b5c8aea90bce6f758546c13d0754b5 (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>
(cherry picked from commit 87ca6320f26eb3129e3c19056e1d8fa5c1784723)
-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; |