From 00eb73286c3512a362dce00efdeae740772d0dcd Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Mon, 29 Jun 2009 09:12:28 -0700 Subject: Use swapbuffers_wait control Commit 1eec83a203c48822400742a1fb184b2cb52c62f7, which added the new SwapbuffersWait option, didn't actually include the code which used it. So add a test to DRI2's CopyRegion call, only emitting the scanline wait command if the swapbuffers_wait option is set. Signed-off-by: Jesse Barnes --- src/i830_dri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i830_dri.c b/src/i830_dri.c index be09126b2..7e2d97e99 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -299,7 +299,7 @@ I830DRI2CopyRegion(DrawablePtr pDraw, RegionPtr pRegion, ValidateGC(dst, pGC); /* Wait for the scanline to be outside the region to be copied */ - if (pixmap_is_scanout(get_drawable_pixmap(dst))) { + if (pixmap_is_scanout(get_drawable_pixmap(dst)) && pI830->swapbuffers_wait) { BoxPtr box; BoxRec crtcbox; int y1, y2; -- cgit v1.2.3