summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_util.h
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2008-01-18 19:08:30 +0100
committerMichel Dänzer <[email protected]>2008-01-18 19:11:30 +0100
commite44bdcf9789caf9971c3c94605fbff7ce66af7ba (patch)
treecd906e10125440159e82849cd2c427be0f877021 /src/mesa/pipe/p_util.h
parent25e2b8d669e01aac551276af7f34d8708d8cb9d0 (diff)
Unify copy_rect helpers.
Some of the copies were buggy.
Diffstat (limited to 'src/mesa/pipe/p_util.h')
-rw-r--r--src/mesa/pipe/p_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_util.h b/src/mesa/pipe/p_util.h
index 573fef9b83a..a2bc330424d 100644
--- a/src/mesa/pipe/p_util.h
+++ b/src/mesa/pipe/p_util.h
@@ -383,4 +383,13 @@ static INLINE int align(int value, int alignment)
*/
extern void _mesa_printf(const char *str, ...);
+
+/* util/p_util.c
+ */
+extern void pipe_copy_rect(ubyte * dst, unsigned cpp, unsigned dst_pitch,
+ unsigned dst_x, unsigned dst_y, unsigned width,
+ unsigned height, const ubyte * src,
+ unsigned src_pitch, unsigned src_x, unsigned src_y);
+
+
#endif