gallium: rename copy/fill_rect utility functions
authorBrian Paul <brianp@vmware.com>
Wed, 19 Aug 2009 19:17:03 +0000 (13:17 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 19 Aug 2009 19:17:58 +0000 (13:17 -0600)
src/gallium/auxiliary/util/u_rect.c
src/gallium/auxiliary/util/u_rect.h
src/gallium/auxiliary/util/u_tile.c
src/gallium/drivers/i965simple/brw_surface.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/mesa/state_tracker/st_texture.c

index 74259d453b119c22ca8b2adae8594e23a60dae93..9866b6fc8a0e626eb3ff1cfc17777ea94b2962f0 100644 (file)
@@ -43,7 +43,7 @@
  * src_pitch may be negative to do vertical flip of pixels from source.
  */
 void
-pipe_copy_rect(ubyte * dst,
+util_copy_rect(ubyte * dst,
                const struct pipe_format_block *block,
                unsigned dst_stride,
                unsigned dst_x,
@@ -91,7 +91,7 @@ pipe_copy_rect(ubyte * dst,
 }
 
 void
-pipe_fill_rect(ubyte * dst,
+util_fill_rect(ubyte * dst,
                const struct pipe_format_block *block,
                unsigned dst_stride,
                unsigned dst_x,
@@ -204,7 +204,7 @@ util_surface_copy(struct pipe_context *pipe,
 
    if (src_map && dst_map) {
       /* If do_flip, invert src_y position and pass negative src stride */
-      pipe_copy_rect(dst_map,
+      util_copy_rect(dst_map,
                      &dst_trans->block,
                      dst_trans->stride,
                      0, 0,
@@ -263,7 +263,7 @@ util_surface_fill(struct pipe_context *pipe,
       case 1:
       case 2:
       case 4:
-         pipe_fill_rect(dst_map, &dst_trans->block, dst_trans->stride,
+         util_fill_rect(dst_map, &dst_trans->block, dst_trans->stride,
                         0, 0, width, height, value);
          break;
       case 8:
index 59e842e16d147e9df5f99958e78c2faf9252eb77..daa50834d367bc39d57a0db346e8b0ecb82ffb8c 100644 (file)
@@ -42,13 +42,13 @@ struct pipe_surface;
 
 
 extern void
-pipe_copy_rect(ubyte * dst, const struct pipe_format_block *block,
+util_copy_rect(ubyte * dst, const struct pipe_format_block *block,
                unsigned dst_stride, unsigned dst_x, unsigned dst_y,
                unsigned width, unsigned height, const ubyte * src,
                int src_stride, unsigned src_x, int src_y);
 
 extern void
-pipe_fill_rect(ubyte * dst, const struct pipe_format_block *block,
+util_fill_rect(ubyte * dst, const struct pipe_format_block *block,
                unsigned dst_stride, unsigned dst_x, unsigned dst_y,
                unsigned width, unsigned height, uint32_t value);
 
index 422bc76003ac2915c69a23ee8cb2c68ff81b7a37..9e76cfbb053d7c3b3b231a5b8c268ef73a7d710c 100644 (file)
@@ -62,7 +62,7 @@ pipe_get_tile_raw(struct pipe_transfer *pt,
    if(!src)
       return;
 
-   pipe_copy_rect(dst, &pt->block, dst_stride, 0, 0, w, h, src, pt->stride, x, y);
+   util_copy_rect(dst, &pt->block, dst_stride, 0, 0, w, h, src, pt->stride, x, y);
 
    screen->transfer_unmap(screen, pt);
 }
@@ -90,7 +90,7 @@ pipe_put_tile_raw(struct pipe_transfer *pt,
    if(!dst)
       return;
 
-   pipe_copy_rect(dst, &pt->block, pt->stride, x, y, w, h, src, src_stride, 0, 0);
+   util_copy_rect(dst, &pt->block, pt->stride, x, y, w, h, src, src_stride, 0, 0);
 
    screen->transfer_unmap(screen, pt);
 }
index 511779dbfa04a9c00aa9080087958ace904064dd..724a69b2eee9eeaff98ffc4195cd3bce8c87f773 100644 (file)
@@ -60,7 +60,7 @@ brw_surface_copy(struct pipe_context *pipe,
                                                        src,
                                                        PIPE_BUFFER_USAGE_CPU_READ );
       
-      pipe_copy_rect(dst_map,
+      util_copy_rect(dst_map,
                      &dst->block,
                      dst->stride,
                      dstx, dsty,
@@ -99,7 +99,7 @@ brw_surface_fill(struct pipe_context *pipe,
                                                  dst,
                                                  PIPE_BUFFER_USAGE_CPU_WRITE );
 
-      pipe_fill_rect(dst_map, &dst->block, dst->stride, dstx, dsty, width, height, value);
+      util_fill_rect(dst_map, &dst->block, dst->stride, dstx, dsty, width, height, value);
 
       pipe->screen->surface_unmap(pipe->screen, dst);
    }
index f2dac73e908c75ad544c0e6e8204e3884a33f389..8da113ec61852426ed310ab2f21d864db8213d7e 100644 (file)
@@ -491,7 +491,7 @@ ExaModifyPixmapHeader(PixmapPtr pPixmap, int width, int height,
            exa->scrn->get_tex_transfer(exa->scrn, priv->tex, 0, 0, 0,
                                        PIPE_TRANSFER_WRITE,
                                        0, 0, width, height);
-        pipe_copy_rect(exa->scrn->transfer_map(exa->scrn, transfer),
+        util_copy_rect(exa->scrn->transfer_map(exa->scrn, transfer),
                        &priv->tex->block, transfer->stride, 0, 0,
                        width, height, pPixData, pPixmap->devKind, 0, 0);
         exa->scrn->transfer_unmap(exa->scrn, transfer);
index d58803991a545690a7539ea36d13d659d1aace85..bbc2830e69413069b19244f11c0d3b20afc96fd0 100644 (file)
@@ -240,7 +240,7 @@ st_surface_data(struct pipe_context *pipe,
    struct pipe_screen *screen = pipe->screen;
    void *map = screen->transfer_map(screen, dst);
 
-   pipe_copy_rect(map,
+   util_copy_rect(map,
                   &dst->block,
                   dst->stride,
                   dstx, dsty,