If do_flipp is true, it would first do the proper copy, height would wrap around to unsigned maximum, and then it attempts to do another copy. Return after doing the proper copy. Signed-off-by: Pekka Paalanen <pq@iki.fi>tags/mesa_20090313
@@ -47,6 +47,7 @@ nv04_surface_copy(struct pipe_context *pipe, boolean do_flip, | |||
eng2d->copy(eng2d, dest, destx, desty--, src, | |||
srcx, srcy++, width, 1); | |||
} | |||
return; | |||
} | |||
eng2d->copy(eng2d, dest, destx, desty, src, srcx, srcy, width, height); |
@@ -47,6 +47,7 @@ nv10_surface_copy(struct pipe_context *pipe, boolean do_flip, | |||
eng2d->copy(eng2d, dest, destx, desty--, src, | |||
srcx, srcy++, width, 1); | |||
} | |||
return; | |||
} | |||
eng2d->copy(eng2d, dest, destx, desty, src, srcx, srcy, width, height); |
@@ -47,6 +47,7 @@ nv20_surface_copy(struct pipe_context *pipe, boolean do_flip, | |||
eng2d->copy(eng2d, dest, destx, desty--, src, | |||
srcx, srcy++, width, 1); | |||
} | |||
return; | |||
} | |||
eng2d->copy(eng2d, dest, destx, desty, src, srcx, srcy, width, height); |
@@ -47,6 +47,7 @@ nv30_surface_copy(struct pipe_context *pipe, boolean do_flip, | |||
eng2d->copy(eng2d, dest, destx, desty--, src, | |||
srcx, srcy++, width, 1); | |||
} | |||
return; | |||
} | |||
eng2d->copy(eng2d, dest, destx, desty, src, srcx, srcy, width, height); |
@@ -47,6 +47,7 @@ nv40_surface_copy(struct pipe_context *pipe, boolean do_flip, | |||
eng2d->copy(eng2d, dest, destx, desty--, src, | |||
srcx, srcy++, width, 1); | |||
} | |||
return; | |||
} | |||
eng2d->copy(eng2d, dest, destx, desty, src, srcx, srcy, width, height); |