summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_surface.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-03 17:28:32 -0600
committerBrian Paul <brianp@vmware.com>2010-05-03 17:28:32 -0600
commit8b0c217f2bc123bffd25cc4977d6abb1b3fa8186 (patch)
treed93fa0fc19b7b582570fd83f85fcf84090a7a041 /src/gallium/auxiliary/util/u_surface.h
parent6c8c88f02f0dc9cf39ce51d068525a94fccd5dc7 (diff)
gallium: move surface utility functions into u_surface.c
This is a better place than in u_rect.c
Diffstat (limited to 'src/gallium/auxiliary/util/u_surface.h')
-rw-r--r--src/gallium/auxiliary/util/u_surface.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_surface.h b/src/gallium/auxiliary/util/u_surface.h
index a61bb29171..c43169b527 100644
--- a/src/gallium/auxiliary/util/u_surface.h
+++ b/src/gallium/auxiliary/util/u_surface.h
@@ -62,4 +62,22 @@ util_destroy_rgba_surface(struct pipe_resource *texture,
struct pipe_surface *surface);
+
+extern void
+util_surface_copy(struct pipe_context *pipe,
+ boolean do_flip,
+ struct pipe_surface *dst,
+ unsigned dst_x, unsigned dst_y,
+ struct pipe_surface *src,
+ unsigned src_x, unsigned src_y,
+ unsigned w, unsigned h);
+
+extern void
+util_surface_fill(struct pipe_context *pipe,
+ struct pipe_surface *dst,
+ unsigned dstx, unsigned dsty,
+ unsigned width, unsigned height, unsigned value);
+
+
+
#endif /* U_SURFACE_H */