mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
8569860c3d
commit
a785a4ae21
5 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue