diff options
author | José Fonseca <[email protected]> | 2012-12-05 20:15:40 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-12-06 17:12:31 +0000 |
commit | b79194401a944e952e3035c676d1d22df24aa2a8 (patch) | |
tree | 8aa18376a4d6b900cb4afdbfcaeb6b10e372afe5 /src/gallium/auxiliary/util/u_surface.h | |
parent | 4da4e8ee2ac337a765afd828880efe5a5a168088 (diff) |
util: Add util_copy_box helper.
Must users of util_copy_rect() need or should deal with volumes.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_surface.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_surface.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_surface.h b/src/gallium/auxiliary/util/u_surface.h index db3fd8b11fe..dd4d5785e40 100644 --- a/src/gallium/auxiliary/util/u_surface.h +++ b/src/gallium/auxiliary/util/u_surface.h @@ -58,6 +58,16 @@ util_copy_rect(ubyte * dst, enum pipe_format format, int src_stride, unsigned src_x, unsigned src_y); extern void +util_copy_box(ubyte * dst, + enum pipe_format format, + unsigned dst_stride, unsigned dst_slice_stride, + unsigned dst_x, unsigned dst_y, unsigned dst_z, + unsigned width, unsigned height, unsigned depth, + const ubyte * src, + int src_stride, unsigned src_slice_stride, + unsigned src_x, unsigned src_y, unsigned src_z); + +extern void util_fill_rect(ubyte * dst, enum pipe_format format, unsigned dst_stride, unsigned dst_x, unsigned dst_y, unsigned width, unsigned height, union util_color *uc); |