rename some 'mesa' functions
authorBrian <brian.paul@tungstengraphics.com>
Sat, 15 Dec 2007 23:51:57 +0000 (16:51 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 15 Dec 2007 23:51:57 +0000 (16:51 -0700)
src/mesa/pipe/i915simple/i915_surface.c
src/mesa/pipe/i965simple/brw_surface.c

index 34064612a72ac3c2b6d42d4ccf58dc5ccd3eacc9..79e74e114373c758d111f1e4caf73acd6fa88efd 100644 (file)
@@ -76,21 +76,18 @@ i915_get_tex_surface(struct pipe_context *pipe,
 }
 
 
-/*
- * XXX Move this into core Mesa?
- */
 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;
 
@@ -128,10 +125,9 @@ i915_surface_data(struct pipe_context *pipe,
                  const void *src, unsigned src_pitch,
                  unsigned srcx, unsigned srcy, unsigned width, unsigned height)
 {
-   _mesa_copy_rect(pipe_surface_map(dst),
-                   dst->cpp,
-                   dst->pitch,
-                   dstx, dsty, width, height, src, src_pitch, srcx, srcy);
+   copy_rect(pipe_surface_map(dst),
+             dst->cpp, dst->pitch,
+             dstx, dsty, width, height, src, src_pitch, srcx, srcy);
 
    pipe_surface_unmap(dst);
 }
@@ -151,7 +147,7 @@ i915_surface_copy(struct pipe_context *pipe,
    assert( dst->cpp == src->cpp );
 
    if (0) {
-      _mesa_copy_rect(pipe_surface_map(dst),
+      copy_rect(pipe_surface_map(dst),
                      dst->cpp,
                      dst->pitch,
                      dstx, dsty, 
index 96f17e434f34107f96fd1af90da0beb775abb6c7..d0e7229d5ca8df9fd95cbbd8758e7dd719fba9ee 100644 (file)
@@ -75,21 +75,19 @@ brw_get_tex_surface(struct pipe_context *pipe,
    return ps;
 }
 
-/*
- * XXX Move this into core Mesa?
- */
+
 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;
 
@@ -126,10 +124,9 @@ brw_surface_data(struct pipe_context *pipe,
                  const void *src, unsigned src_pitch,
                  unsigned srcx, unsigned srcy, unsigned width, unsigned height)
 {
-   _mesa_copy_rect(pipe_surface_map(dst) + dst->offset,
-                   dst->cpp,
-                   dst->pitch,
-                   dstx, dsty, width, height, src, src_pitch, srcx, srcy);
+   copy_rect(pipe_surface_map(dst) + dst->offset,
+             dst->cpp, dst->pitch,
+             dstx, dsty, width, height, src, src_pitch, srcx, srcy);
 
    pipe_surface_unmap(dst);
 }
@@ -149,7 +146,7 @@ brw_surface_copy(struct pipe_context *pipe,
    assert(dst->cpp == src->cpp);
 
    if (0) {
-      _mesa_copy_rect(pipe_surface_map(dst) + dst->offset,
+      copy_rect(pipe_surface_map(dst) + dst->offset,
                      dst->cpp,
                      dst->pitch,
                      dstx, dsty,