gallium/util: added pipe_put_tile_rgba_format()
authorBrian Paul <brianp@vmware.com>
Sun, 23 Jan 2011 00:06:13 +0000 (17:06 -0700)
committerBrian Paul <brianp@vmware.com>
Sun, 23 Jan 2011 01:33:35 +0000 (18:33 -0700)
src/gallium/auxiliary/util/u_tile.c
src/gallium/auxiliary/util/u_tile.h

index ae862130d8921052cea30ac0d7f0a481a59b896e..e3c7085ba9230219984d3c6e9865d726315fefe5 100644 (file)
@@ -407,10 +407,20 @@ pipe_put_tile_rgba(struct pipe_context *pipe,
                    struct pipe_transfer *pt,
                    uint x, uint y, uint w, uint h,
                    const float *p)
+{
+   pipe_put_tile_rgba_format(pipe, pt, x, y, w, h, pt->resource->format, p);
+}
+
+
+void
+pipe_put_tile_rgba_format(struct pipe_context *pipe,
+                          struct pipe_transfer *pt,
+                          uint x, uint y, uint w, uint h,
+                          enum pipe_format format,
+                          const float *p)
 {
    unsigned src_stride = w * 4;
    void *packed;
-   enum pipe_format format = pt->resource->format;
 
    if (u_clip_tile(x, y, &w, &h, &pt->box))
       return;
index b198837e5ce194de26744b30cd9b9b971f1ccbc5..0ba274308fe41ed3dace4e28d08072e0dd2de941 100644 (file)
@@ -92,6 +92,13 @@ pipe_put_tile_rgba(struct pipe_context *pipe,
                    uint x, uint y, uint w, uint h,
                    const float *p);
 
+void
+pipe_put_tile_rgba_format(struct pipe_context *pipe,
+                          struct pipe_transfer *pt,
+                          uint x, uint y, uint w, uint h,
+                          enum pipe_format format,
+                          const float *p);
+
 
 void
 pipe_get_tile_z(struct pipe_context *pipe,