Use swapbuffers_wait control

Commit 1eec83a203, 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 <jbarnes@virtuousgeek.org>
This commit is contained in:
Jesse Barnes 2009-06-29 09:12:28 -07:00
parent f53b3239db
commit 00eb73286c
1 changed files with 1 additions and 1 deletions

View File

@ -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;