Browse Source

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>
tags/mesa_20090313
Pekka Paalanen 16 years ago
parent
commit
a785a4ae21

+ 1
- 0
src/gallium/drivers/nv04/nv04_surface.c 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);

+ 1
- 0
src/gallium/drivers/nv10/nv10_surface.c 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);

+ 1
- 0
src/gallium/drivers/nv20/nv20_surface.c 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);

+ 1
- 0
src/gallium/drivers/nv30/nv30_surface.c 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);

+ 1
- 0
src/gallium/drivers/nv40/nv40_surface.c 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);

Loading…
Cancel
Save