diff options
author | Brian Paul <[email protected]> | 2011-01-22 17:06:13 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-01-22 18:33:35 -0700 |
commit | e75844b4e09cbbfca159a4e4709d3ca1249d784d (patch) | |
tree | e294f7b4014b6976e707bb920adf2bd3b112f4f9 | |
parent | 3ce1ec853b561dd4731a4d62395d5e50df26e868 (diff) |
gallium/util: added pipe_put_tile_rgba_format()
-rw-r--r-- | src/gallium/auxiliary/util/u_tile.c | 12 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_tile.h | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c index ae862130d89..e3c7085ba92 100644 --- a/src/gallium/auxiliary/util/u_tile.c +++ b/src/gallium/auxiliary/util/u_tile.c @@ -408,9 +408,19 @@ pipe_put_tile_rgba(struct pipe_context *pipe, 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; diff --git a/src/gallium/auxiliary/util/u_tile.h b/src/gallium/auxiliary/util/u_tile.h index b198837e5ce..0ba274308fe 100644 --- a/src/gallium/auxiliary/util/u_tile.h +++ b/src/gallium/auxiliary/util/u_tile.h @@ -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, |