nv04-nv40: fix nv##_surface_copy() for flipped

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>
This commit is contained in:
Pekka Paalanen 2009-02-05 19:45:33 +02:00
parent 8569860c3d
commit a785a4ae21
5 changed files with 5 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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