R1/2/3/4/5xx: fixed calculation of cliprects in CopyBuffer.

This commit is contained in:
Dennis Kasprzyk
2008-05-29 11:25:21 +02:00
committed by Michel Dänzer
parent 377016d728
commit 328621509f
3 changed files with 18 additions and 12 deletions
+6 -4
View File
@@ -477,16 +477,18 @@ void r200CopyBuffer( __DRIdrawablePrivate *dPriv,
if (rect->y2 < b->y2)
b->y2 = rect->y2;
if (b->x1 < b->x2 && b->y1 < b->y2)
b++;
if (b->x1 >= b->x2 || b->y1 >= b->y2)
continue;
}
else
b++;
b++;
n++;
}
rmesa->sarea->nbox = n;
if (!n)
continue;
ret = drmCommandNone( rmesa->dri.fd, DRM_RADEON_SWAP );
if ( ret ) {
+6 -4
View File
@@ -215,16 +215,18 @@ void radeonCopyBuffer(__DRIdrawablePrivate * dPriv,
if (rect->y2 < b->y2)
b->y2 = rect->y2;
if (b->x1 < b->x2 && b->y1 < b->y2)
b++;
if (b->x1 >= b->x2 || b->y1 >= b->y2)
continue;
}
else
b++;
b++;
n++;
}
radeon->sarea->nbox = n;
if (!n)
continue;
ret = drmCommandNone(radeon->dri.fd, DRM_RADEON_SWAP);
if (ret) {
+6 -4
View File
@@ -919,16 +919,18 @@ void radeonCopyBuffer( __DRIdrawablePrivate *dPriv,
if (rect->y2 < b->y2)
b->y2 = rect->y2;
if (b->x1 < b->x2 && b->y1 < b->y2)
b++;
if (b->x1 >= b->x2 || b->y1 >= b->y2)
continue;
}
else
b++;
b++;
n++;
}
rmesa->sarea->nbox = n;
if (!n)
continue;
ret = drmCommandNone( rmesa->dri.fd, DRM_RADEON_SWAP );
if ( ret ) {