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:
parent
f53b3239db
commit
00eb73286c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue