summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_rect.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-09-04 10:31:23 -0600
committerBrian Paul <[email protected]>2008-09-04 10:31:23 -0600
commitce8c08c2b03d8dc363deb14124372a6bbb4efd99 (patch)
tree44ce032cdc499467d6325f819b51fcff44cacde0 /src/gallium/auxiliary/util/u_rect.h
parent978f07bebdd5a368b8f900ed9cf77d3464a77ec0 (diff)
gallium: new util_surface_copy() and util_surface_fill() helpers
These are plug-in fallbacks for the pipe->surface_copy() and pipe->surface_fill() functions.
Diffstat (limited to 'src/gallium/auxiliary/util/u_rect.h')
-rw-r--r--src/gallium/auxiliary/util/u_rect.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_rect.h b/src/gallium/auxiliary/util/u_rect.h
index fba48088641..59e842e16d1 100644
--- a/src/gallium/auxiliary/util/u_rect.h
+++ b/src/gallium/auxiliary/util/u_rect.h
@@ -37,6 +37,9 @@
#include "pipe/p_format.h"
+struct pipe_context;
+struct pipe_surface;
+
extern void
pipe_copy_rect(ubyte * dst, const struct pipe_format_block *block,
@@ -50,5 +53,20 @@ pipe_fill_rect(ubyte * dst, const struct pipe_format_block *block,
unsigned width, unsigned height, uint32_t value);
+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_RECT_H */