summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-26 17:03:40 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-26 17:03:40 -0600
commitb3bb1e3ebf260f18a2097a9a8fe8ab52f104dab1 (patch)
tree4e409fa6177053b8af8ac092b3554f6cefa1a463 /src
parent324ecadbfdf9b944e059832f146451e4151dcb21 (diff)
s/_mesa_copy_rect/copy_rect/
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/softpipe/sp_region.c51
1 files changed, 26 insertions, 25 deletions
diff --git a/src/mesa/pipe/softpipe/sp_region.c b/src/mesa/pipe/softpipe/sp_region.c
index 697b738e43..faf2737d6b 100644
--- a/src/mesa/pipe/softpipe/sp_region.c
+++ b/src/mesa/pipe/softpipe/sp_region.c
@@ -123,21 +123,22 @@ sp_region_release(struct pipe_context *pipe, struct pipe_region **region)
}
-/*
- * XXX Move this into core Mesa?
+/**
+ * Copy 2D rect from one place to another.
+ * Position and sizes are in pixels.
*/
static void
-_mesa_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)
+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)
{
unsigned i;
@@ -176,10 +177,10 @@ sp_region_data(struct pipe_context *pipe,
const void *src, unsigned src_pitch,
unsigned srcx, unsigned srcy, unsigned width, unsigned height)
{
- _mesa_copy_rect(pipe->region_map(pipe, dst) + dst_offset,
- dst->cpp,
- dst->pitch,
- dstx, dsty, width, height, src, src_pitch, srcx, srcy);
+ copy_rect(pipe->region_map(pipe, dst) + dst_offset,
+ dst->cpp,
+ dst->pitch,
+ dstx, dsty, width, height, src, src_pitch, srcx, srcy);
pipe->region_unmap(pipe, dst);
}
@@ -198,14 +199,14 @@ sp_region_copy(struct pipe_context *pipe,
{
assert( dst->cpp == src->cpp );
- _mesa_copy_rect(pipe->region_map(pipe, dst) + dst_offset,
- dst->cpp,
- dst->pitch,
- dstx, dsty,
- width, height,
- pipe->region_map(pipe, src) + src_offset,
- src->pitch,
- srcx, srcy);
+ copy_rect(pipe->region_map(pipe, dst) + dst_offset,
+ dst->cpp,
+ dst->pitch,
+ dstx, dsty,
+ width, height,
+ pipe->region_map(pipe, src) + src_offset,
+ src->pitch,
+ srcx, srcy);
pipe->region_unmap(pipe, src);
pipe->region_unmap(pipe, dst);